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 ncoghlan
Recipients brett.cannon, eric.snow, ncoghlan, python-dev, superluser
Date 2016-01-16.04:43:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Favouring __spec__.parent over __package__ will break the documented workaround in PEP 366 for enabling explicit relative imports from __main__ even when a module is run directly instead of via -m:

    if __name__ == "__main__" and __package__ is None:
        __package__ = ""

It may be that workaround is something we *want* to break (as per ), but if so, it's at least worthy of a porting note in the What's New document.
Date User Action Args
2016-01-16 04:43:41ncoghlansetrecipients: + ncoghlan, brett.cannon, python-dev, eric.snow, superluser
2016-01-16 04:43:41ncoghlansetmessageid: <>
2016-01-16 04:43:41ncoghlanlinkissue25791 messages
2016-01-16 04:43:41ncoghlancreate