Message396180
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 |
|
Date |
User |
Action |
Args |
2021-06-20 17:02:21 | iritkatriel | set | recipients:
+ iritkatriel, r.david.murray, Vadim Kantorov |
2021-06-20 17:02:21 | iritkatriel | set | messageid: <1624208541.14.0.541628967964.issue24907@roundup.psfhosted.org> |
2021-06-20 17:02:21 | iritkatriel | link | issue24907 messages |
2021-06-20 17:02:20 | iritkatriel | create | |
|