Staging
v0.5.1
https://github.com/python/cpython
Revision 410b730c205133315c604350f4bdc2345588b397 authored by Miss Islington (bot) on 01 June 2020, 16:07:32 UTC, committed by GitHub on 01 June 2020, 16:07:32 UTC
(cherry picked from commit db64f12e4deda2abbafb6d2bd5c06762fca991ff)

Co-authored-by: Mark Shannon <mark@hotpy.org>
1 parent a169961
Raw File
Tip revision: 410b730c205133315c604350f4bdc2345588b397 authored by Miss Islington (bot) on 01 June 2020, 16:07:32 UTC
Make sure that keyword arguments are merged into the arguments dictionary when dict unpacking and keyword arguments are interleaved. (GH-20553) (GH-20569)
Tip revision: 410b730
dynload_dl.c

/* Support for dynamic loading of extension modules */

#include "dl.h"

#include "Python.h"
#include "importdl.h"


extern char *Py_GetProgramName(void);

const char *_PyImport_DynLoadFiletab[] = {".o", NULL};


dl_funcptr _PyImport_FindSharedFuncptr(const char *prefix,
                                       const char *shortname,
                                       const char *pathname, FILE *fp)
{
    char funcname[258];

    PyOS_snprintf(funcname, sizeof(funcname), "%.20s_%.200s", prefix, shortname);
    return dl_loadmod(Py_GetProgramName(), pathname, funcname);
}
back to top