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 iritkatriel
Recipients Vadim Kantorov, iritkatriel, r.david.murray
Date 2021-06-20.17:02:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1624208541.14.0.541628967964.issue24907@roundup.psfhosted.org>
In-reply-to
Content
2.7 is past EOL and I could not reproduce this on a current python version. Please create a new issue if you are still having a problem with this on 3.9+.

PS C:\Users\User\src\cpython-dev> .\python.bat
Running Release|x64 interpreter...
Python 3.11.0a0 (heads/main-dirty:09eb817115, Jun 20 2021, 16:50:29) [MSC v.1928 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> with open('json/__init__.py', 'w') as f:
...    f.write("__import__('pkg_resources').declare_namespace(__name__); print('test')")
...
70
>>> quit()
PS C:\Users\User\src\cpython-dev> python -c 'import json; print( json.__file__)'
Running Release|x64 interpreter...
test
C:\Users\User\src\cpython-dev\json\__init__.py
History
Date User Action Args
2021-06-20 17:02:21iritkatrielsetrecipients: + iritkatriel, r.david.murray, Vadim Kantorov
2021-06-20 17:02:21iritkatrielsetmessageid: <1624208541.14.0.541628967964.issue24907@roundup.psfhosted.org>
2021-06-20 17:02:21iritkatriellinkissue24907 messages
2021-06-20 17:02:20iritkatrielcreate