MemoryError, can I use more?

Nobody nobody at
Sat Feb 13 08:01:39 CET 2010

On Fri, 12 Feb 2010 19:21:22 -0500, Echavarria Gregory, Maria Angelica

> I am developing a program using Python 2.5.4 in windows 32 OS. The amount
> of data it works with is huge. I have managed to keep memory footprint
> low, but have found that, independent of the physical RAM of the machine,
> python always gives the MemoryError message when it has occupied exactly
> only 2.2 GB. I have tested this in 4 different machines, all with memory
> of 3 to 4 GB... I'm amazed.
> Could any of you please help me to figure out how to change that limit? I
> typed help(MemoryError) and it is a class itself, but that help told me
> nothing I can use...

A single process can't use much more than 2GiB of RAM without a 64-bit CPU
and OS.

If you're stuck with a 32-bit system, you really need to figure out how to
limit the amount of data which is kept in memory at any one time.

More information about the Python-list mailing list