Staging
v0.5.1
https://github.com/python/cpython
Revision 4941774f59ae808a764e29e09abfedf6fc199ed3 authored by Nick Coghlan on 02 August 2012, 13:03:58 UTC, committed by Nick Coghlan on 02 August 2012, 13:03:58 UTC
1 parent e3376ef
Raw File
Tip revision: 4941774f59ae808a764e29e09abfedf6fc199ed3 authored by Nick Coghlan on 02 August 2012, 13:03:58 UTC
Issue #15502: Bring the importlib.PathFinder docs and docstring more in line with the new import system documentation, and fix various parts of the new docs that weren't quite right given PEP 420 or were otherwise a bit misleading. Also note the key terminology problem still being discussed in the issue
Tip revision: 4941774
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_GetDynLoadFunc(const char *shortname,
                                    const char *pathname, FILE *fp)
{
    char funcname[258];

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