diff options
author | Nick Coghlan <ncoghlan@gmail.com> | 2008-07-13 14:52:36 (GMT) |
---|---|---|
committer | Nick Coghlan <ncoghlan@gmail.com> | 2008-07-13 14:52:36 (GMT) |
commit | b028f509119d5ea7dd85d7f38df366ccc9d7bdb4 (patch) | |
tree | 0cef7d8095d49b149d12c1ce2d2044e4561c94e7 /Misc/NEWS | |
parent | 12c8660cc6f299464d61b3edd57a73dc6bcbffd7 (diff) | |
download | cpython-b028f509119d5ea7dd85d7f38df366ccc9d7bdb4.zip cpython-b028f509119d5ea7dd85d7f38df366ccc9d7bdb4.tar.gz cpython-b028f509119d5ea7dd85d7f38df366ccc9d7bdb4.tar.bz2 |
Fix issue 3221 by emitting a RuntimeWarning instead of raising SystemError when the parent module can't be found during an absolute import (likely due to non-PEP 361 aware code which sets a module level __package__ attribute)
Diffstat (limited to 'Misc/NEWS')
-rw-r--r-- | Misc/NEWS | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -10,6 +10,12 @@ What's New in Python 2.6 beta 2? Core and Builtins ----------------- +- Issue #3221: Issue a RuntimeWarning instead of raising SystemError if + the parent module cannot be found while performing an absolute import. + This means that an incorrectly defined __package__ attribute will + now only prevent relative imports in that module rather than causing + all imports from that module to fail. + - Issue #2517: Allow unicode messages in Exceptions again by correctly bypassing the instance dictionary when looking up __unicode__ on new-style classes. |