• Brett Cannon's avatar
    Issues #15169, #14599: Make PyImport_ExecCodeModuleWithPathnames() use · a6473f9c
    Brett Cannon yazdı
    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.
    a6473f9c
imp.py 8.42 KB