Message199814
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. |
|
Date |
User |
Action |
Args |
2013-10-13 22:10:25 | pitrou | set | recipients:
+ pitrou, tim.peters, tim.golden, r.david.murray, brian.curtin, Пётр.Дёмин |
2013-10-13 22:10:25 | pitrou | set | messageid: <1381702225.07.0.785606408169.issue19246@psf.upfronthosting.co.za> |
2013-10-13 22:10:25 | pitrou | link | issue19246 messages |
2013-10-13 22:10:24 | pitrou | create | |
|