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 brett.cannon
Recipients brett.cannon, eric.snow, ncoghlan, pitrou, python-dev, scoder, superluser
Date 2017-05-28.19:18:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
OK, so the warning is triggered if __package is None or __spec__ is None ( That's defined in _calc___package__() which is only called if index != 0 when calling __import__() ( or

So the question becomes how is Cython importing modules? This warning should only be triggered if you're attempting a relative import from within a package (and thus have a level > 0). Based on Antoine's Cython issue, since something like multidict isn't a package it would suggest either Cython is setting the level > 0 when it doesn't mean to or there's a bug somewhere with level == 0 and yet Python is still trying to calculate the parent package for no reason.
Date User Action Args
2017-05-28 19:18:18brett.cannonsetrecipients: + brett.cannon, ncoghlan, pitrou, scoder, python-dev, eric.snow, superluser
2017-05-28 19:18:17brett.cannonsetmessageid: <>
2017-05-28 19:18:17brett.cannonlinkissue25791 messages
2017-05-28 19:18:17brett.cannoncreate