MemoryError under 2.2b1

wtr wtri at wtresearch.de
Fri Nov 2 11:09:37 CET 2001


The following little script ends in a MemoryError

hello world!
Traceback (most recent call last):
  File "C:/Python22/HelloWorld.py", line 4, in ?
    for j in range(99999999,1000000001):
MemoryError

There seems to be a strange dependancy between the two range parameters;
ranges (99999999,100000000) and (999999999,1000000099) work.
-----------------------------------------------------
print "hello world!"
import time

for j in range(99999999,1000000001):
    null= 0
    print null
t1=time.time()
print t1
----------------------------------------------------

Greetings,
wolfgang teschner





More information about the Python-list mailing list