Message269564
1. If __package__ is None, and __spec__ is None or not set, and emitting ImportWarning raises an error, package is a borrowed reference to None, and it is decrefed. As result, the reference count of None is decremented.
2. __import__ is looked in globals or builtins and passed to _find_and_load(), _handle_fromlist() or called with highest package name. This doesn't match Python implementation. Python implementation uses _gcd_import which implements the original __import__, and isn't affected by overriding __import__ in globals or builtins. |
|
Date |
User |
Action |
Args |
2016-06-30 08:28:21 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, brett.cannon, ncoghlan, eric.snow |
2016-06-30 08:28:21 | serhiy.storchaka | set | messageid: <1467275301.6.0.860119433525.issue27419@psf.upfronthosting.co.za> |
2016-06-30 08:28:21 | serhiy.storchaka | link | issue27419 messages |
2016-06-30 08:28:20 | serhiy.storchaka | create | |
|