This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients brett.cannon, eric.snow, ncoghlan, serhiy.storchaka
Date 2016-06-30.08:28:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1467275301.6.0.860119433525.issue27419@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2016-06-30 08:28:21serhiy.storchakasetrecipients: + serhiy.storchaka, brett.cannon, ncoghlan, eric.snow
2016-06-30 08:28:21serhiy.storchakasetmessageid: <1467275301.6.0.860119433525.issue27419@psf.upfronthosting.co.za>
2016-06-30 08:28:21serhiy.storchakalinkissue27419 messages
2016-06-30 08:28:20serhiy.storchakacreate