anonymous memory mapping

Fabiano Sidler fabianosidler at
Tue Mar 14 07:57:00 EST 2006

2006/3/14, Peter Hansen <peter at>:
> (As for me, I have no idea what the question is about, so this is the
> most help I can give.)

Ok, sorry! I wanted to do this:

--- snip ---
from mmap import mmap, MAP_ANONYMOUS
mm = mmap(-1, 1024, MAP_ANONYMOUS)
--- snap ---

But I got an EnvironmentError, "[Errno 22] Invalid argument" (on
Linux2.6, btw.). The reason why I want to use anonymous mapping is
that it only allocates the memory it actually uses.


More information about the Python-list mailing list