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 hroncok
Recipients hroncok
Date 2020-08-12.15:42:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1597246976.86.0.332574378371.issue41531@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2020-08-12 15:42:56hroncoksetrecipients: + hroncok
2020-08-12 15:42:56hroncoksetmessageid: <1597246976.86.0.332574378371.issue41531@roundup.psfhosted.org>
2020-08-12 15:42:56hroncoklinkissue41531 messages
2020-08-12 15:42:56hroncokcreate