Python hits the spot

Stefan Antoni sasoft at gmx.de
Sun Jun 23 19:52:44 EDT 2002


* Pär Kurlberg <kurlberg at math.chalmers.se> [020623 22:46]:

 
> for i in range(50*1000*1000):
>    pass
 
> Can someone else reproduce this behaviour?  (Make sure to quit all
> important applications before you try!)

following:

>>> for i in range(50*1000*1000):
...  pass
... 
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  MemoryError


> Some trivia:
> Python 2.2.1 (#1, Jun 12 2002, 17:57:17)
> [GCC 2.96 20000731 (Mandrake Linux 8.1 2.96-0.62mdk)] on linux2

Python 2.3a0 (#1, Jun 23 2002, 13:54:31) 
[GCC 2.96 20000731 (Linux-Mandrake 8.0 2.96-0.48mdk)] on linux2





More information about the Python-list mailing list