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 pitrou
Recipients brian.curtin, pitrou, r.david.murray, tim.golden, tim.peters, Пётр.Дёмин
Date 2013-10-13.22:10:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1381702225.07.0.785606408169.issue19246@psf.upfronthosting.co.za>
In-reply-to
Content
Works fine on a 32-bit Linux build (64-bit machine, though):

>>> import sys
>>> sys.maxsize
2147483647
>>> a = {}
>>> for k in range(1000000): a['a' * k] = k
... 
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
MemoryError
>>> del a
>>> a = {}
>>> for k in range(1000000): a[k] = k
... 
>>> 


Note that Linux says the process eats 4GB RAM.
History
Date User Action Args
2013-10-13 22:10:25pitrousetrecipients: + pitrou, tim.peters, tim.golden, r.david.murray, brian.curtin, Пётр.Дёмин
2013-10-13 22:10:25pitrousetmessageid: <1381702225.07.0.785606408169.issue19246@psf.upfronthosting.co.za>
2013-10-13 22:10:25pitroulinkissue19246 messages
2013-10-13 22:10:24pitroucreate