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 barry, brett.cannon, eric.snow, ncoghlan
Date 2022-01-13.19:58:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1642103883.58.0.808765675631.issue46360@roundup.psfhosted.org>
In-reply-to
Content
So which inconsistency do you want to change because you listed three and this is only one issue. 😉

I'm going to assume the "even though sys.modules has `None`" case, which I think is an oversight and should probably get fixed, but I also don't know what promises the language spec makes around this.

As for the other two, you can open separate issues if you want to discuss them, but I double-check what the language spec says as I am tempted to say both are fine (and specifically in the latter case that's on you to have not messed up and left the attribute off).
History
Date User Action Args
2022-01-13 19:58:03brett.cannonsetrecipients: + brett.cannon, barry, ncoghlan, eric.snow
2022-01-13 19:58:03brett.cannonsetmessageid: <1642103883.58.0.808765675631.issue46360@roundup.psfhosted.org>
2022-01-13 19:58:03brett.cannonlinkissue46360 messages
2022-01-13 19:58:03brett.cannoncreate