Re: [Python-Dev] mmap documentation error (2.5.1)

2008-04-25 Thread Aahz
On Fri, Apr 25, 2008, Neal Becker wrote: > > Sorry, my mistake. Acutally, I was trying to debug this: python-dev is probably not the right place for this -- please use c.l.py or the list capi-sig. -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ Why is this newsgrou

Re: [Python-Dev] mmap documentation error (2.5.1)

2008-04-25 Thread Neal Becker
Sorry, my mistake. Acutally, I was trying to debug this: On linux, I don't understand why: f = open ('/dev/eos', 'rw') m = mmap.mmap(f.fileno(), 100, prot=mmap.PROT_READ|mmap.PROT_WRITE, flags=mmap.MAP_SHARED) gives 'permission denied', but this c++ code works: #include #include #include

[Python-Dev] mmap documentation error (2.5.1)

2008-04-25 Thread Neal Becker
mmap( fileno, length[, flags[, prot[, access]]]) (Unix version) Maps length bytes from the file specified by the file descriptor fileno, and returns a mmap object. If length is 0, the maximum length of the map will be the current size of the file when mmap() is called. flags specifies the nature