psyco out of memory

Ivan Voras ivoras at
Thu Aug 5 19:11:11 CEST 2004

I have this simple *dumb* benchmark-like program:

#import psyco

d = 0.0
for i in xrange(1000000000):
     d += i
print d

I though I'd use it to try out psyco, but no, when I enable the first 
two lines, python core-dumps:

Fatal Python error: psyco: out of memory
Abort (core dumped)

Now this isn't a real-world application example, but it's certainly 
unexpected. Did psyco try to mimic range() and allocate 1G of integers?

(I'm running python 2.3.4 on FreeBSD 5)

What part of "Ph'nglui mglw'nath Cthulhu R'lyeh wgah'nagl fhtagn" don't
you understand?

More information about the Python-list mailing list