Manipulating large blobs in Python
Fredrik Lundh
fredrik at pythonware.com
Fri Apr 22 02:21:39 EDT 2005
Tim Stone wrote:
> I'm working on a module that will manipulate large blobs. I'm using a C
> dll to allocate big blocks of memory, using PyMem_Malloc, which is
> working quite well up until I try to manipulate a blob that exhausts
> Python's heap.
how large is that?
> I'm guessing that to increase the heapsize, I'm going to have to recompile
> Python... (??) Am I on the right track?
no. if PyMem_Malloc fails (i.e. returns NULL), it's the operating system
that refuses to give your process more memory.
</F>
More information about the Python-list
mailing list