diff options
author | Brett Cannon <brett@python.org> | 2013-06-01 03:18:39 (GMT) |
---|---|---|
committer | Brett Cannon <brett@python.org> | 2013-06-01 03:18:39 (GMT) |
commit | 3e0651b5fa45031b858556292f5623e264addfd0 (patch) | |
tree | cbc860cfd294cb53ce0e37fa9dd320913054fad2 /Misc | |
parent | 0e75c0688673da4fbaceae0b75e20e953751e86a (diff) | |
download | cpython-3e0651b5fa45031b858556292f5623e264addfd0.zip cpython-3e0651b5fa45031b858556292f5623e264addfd0.tar.gz cpython-3e0651b5fa45031b858556292f5623e264addfd0.tar.bz2 |
Issue #18065: For frozen packages set __path__ to [].
Previously __path__ was set to [__name__], but that could lead to bad
results if someone managed to circumvent the frozen importer and
somehow ended up with a finder that thought __name__ was a legit
directory/location.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -10,6 +10,12 @@ What's New in Python 3.4.0 Alpha 1? Core and Builtins ----------------- +- Issue #18065: Don't set __path__ to the package name for frozen packages. + +- Issue #18088: When reloading a module, unconditionally reset all relevant + attributes on the module (e.g. __name__, __loader__, __package__, __file__, + __cached__). + - Issue #17937: Try harder to collect cyclic garbage at shutdown. - Issue #12370: Prevent class bodies from interfering with the __class__ |