]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Issues #15169, #14599: Make PyImport_ExecCodeModuleWithPathnames() use
authorBrett Cannon <brett@python.org>
Fri, 13 Jul 2012 17:57:03 +0000 (13:57 -0400)
committerBrett Cannon <brett@python.org>
Fri, 13 Jul 2012 17:57:03 +0000 (13:57 -0400)
commita6473f9cfd13358b003b8353cd722ca19352817c
tree3533968bc996698be3bd30eb80ecb5b6dea05f85
parentd104eef118bda30725ac087e06252a5a3525e2df
Issues #15169, #14599: Make PyImport_ExecCodeModuleWithPathnames() use
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.
Doc/c-api/import.rst
Lib/imp.py
Lib/importlib/_bootstrap.py
Misc/NEWS
Python/import.c
Python/importlib.h