Author ncoghlan
Recipients barry, brett.cannon, eric.snow, ncoghlan, serhiy.storchaka, xiang.zhang
Date 2018-02-25.01:34:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1519522443.04.0.467229070634.issue32932@psf.upfronthosting.co.za>
In-reply-to
Content
I believe the original rationale for the `__path__` check was to restrict that branch to the case where we may need to import a not-yet-imported submodule in order to get the attribute set appropriately.

However, giving a better error message for __all__ in ordinary modules also seems like a good reason to follow that branch.
History
Date User Action Args
2018-02-25 01:34:03ncoghlansetrecipients: + ncoghlan, barry, brett.cannon, eric.snow, serhiy.storchaka, xiang.zhang
2018-02-25 01:34:03ncoghlansetmessageid: <1519522443.04.0.467229070634.issue32932@psf.upfronthosting.co.za>
2018-02-25 01:34:02ncoghlanlinkissue32932 messages
2018-02-25 01:34:02ncoghlancreate