Message375255
Consider this reproducer.py:
import sys
LEN = int(sys.argv[1])
with open('big_dict.py', 'w') as f:
print('INTS = {', file=f)
for i in range(LEN):
print(f' {i}: None,', file=f)
print('}', file=f)
import big_dict
assert len(big_dict.INTS) == LEN, len(big_dict.INTS)
And run it with any number > 65535:
$ python3.9 reproducer.py 65536
Traceback (most recent call last):
File "/tmp/reproducer.py", line 12, in <module>
assert len(big_dict.INTS) == LEN, len(big_dict.INTS)
AssertionError: 65535
This has not happened on python 3.8. This also happens with PYTHONOLDPARSER=1. |
|
Date |
User |
Action |
Args |
2020-08-12 15:42:56 | hroncok | set | recipients:
+ hroncok |
2020-08-12 15:42:56 | hroncok | set | messageid: <1597246976.86.0.332574378371.issue41531@roundup.psfhosted.org> |
2020-08-12 15:42:56 | hroncok | link | issue41531 messages |
2020-08-12 15:42:56 | hroncok | create | |
|