Message199814
| 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. |
|