summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2012-07-13 17:57:03 (GMT)
committerBrett Cannon <brett@python.org>2012-07-13 17:57:03 (GMT)
commita6473f9cfd13358b003b8353cd722ca19352817c (patch)
tree3533968bc996698be3bd30eb80ecb5b6dea05f85 /Misc
parentd104eef118bda30725ac087e06252a5a3525e2df (diff)
downloadcpython-a6473f9cfd13358b003b8353cd722ca19352817c.zip
cpython-a6473f9cfd13358b003b8353cd722ca19352817c.tar.gz
cpython-a6473f9cfd13358b003b8353cd722ca19352817c.tar.bz2
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.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS9
1 files changed, 9 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 2cad6fb..89b1147 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -92,6 +92,15 @@ Library
- Issue 10924: Fixed mksalt() to use a RNG that is suitable for cryptographic
purpose.
+C API
+-----
+
+- Issues #15169, #14599: Strip out the C implementation of
+ imp.source_from_cache() used by PyImport_ExecCodeModuleWithPathnames() and
+ used the Python code instead. Leads to PyImport_ExecCodeModuleObject() to not
+ try to infer the source path from the bytecode path as
+ PyImport_ExecCodeModuleWithPathnames() does.
+
Extension Modules
-----------------