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, indygreg, ncoghlan, serhiy.storchaka
Date 2020-12-04.07:46:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1607067973.06.0.133232854034.issue42564@roundup.psfhosted.org>
In-reply-to
Content
Other example is:

>>> import sys
>>> import xml
>>> import xml.__init__
>>> sys.modules['xml']
<module 'xml' from '/home/serhiy/py/cpython/Lib/xml/__init__.py'>
>>> sys.modules['xml.__init__']
<module 'xml.__init__' from '/home/serhiy/py/cpython/Lib/xml/__init__.py'>
>>> sys.modules['xml'] is sys.modules['xml.__init__']
False

I'm not sure we should do anything about it other than say "Don't do this."
History
Date User Action Args
2020-12-04 07:46:13serhiy.storchakasetrecipients: + serhiy.storchaka, brett.cannon, ncoghlan, eric.snow, indygreg
2020-12-04 07:46:13serhiy.storchakasetmessageid: <1607067973.06.0.133232854034.issue42564@roundup.psfhosted.org>
2020-12-04 07:46:13serhiy.storchakalinkissue42564 messages
2020-12-04 07:46:11serhiy.storchakacreate