• Brett Cannon's avatar
    Issues #15169, #14599: Make PyImport_ExecCodeModuleWithPathnames() use · cf194aba
    Brett Cannon authored
    Lib/imp.py for imp.source_from_cache() instead of its own C version.
    
    Also change PyImport_ExecCodeModuleObject() to not infer the source
    path from the bytecode path like
    PyImport_ExecCodeModuleWithPathnames() does. This makes the function
    less magical.
    
    This also has the side-effect of removing all uses of MAXPATHLEN in
    Python/import.c which can cause failures on really long filenames.
    cf194aba
import.rst 12.1 KB