Staging
v0.8.1
https://github.com/python/cpython
Revision d02d824e05e2cb86f4df381be18832e76e2c475f authored by Brett Cannon on 05 October 2020, 16:42:21 UTC, committed by GitHub on 05 October 2020, 16:42:21 UTC
1 parent 1fce240
Raw File
Tip revision: d02d824e05e2cb86f4df381be18832e76e2c475f authored by Brett Cannon on 05 October 2020, 16:42:21 UTC
bpo-41584: clarify when the reflected method of a binary arithemtic operator is called (#22505)
Tip revision: d02d824
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