By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,222 Members | 2,354 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,222 IT Pros & Developers. It's quick & easy.

Memory mapped File (Python win32 extensions)

P: n/a
Hello,
I see that it is possible to use mmapfile.pyd of win32all. The same is
mentioned in http://www.python.org/windows/win32/#mmapfile.

Unfortunately I could not trace any example using mmapfile.

Any example or link to an example will be of help. I am interested to
learn how to achieve efficient sharing of data between separate
processes using mmapfile.

Regards,
/Srijit

Jul 18 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
"Srijit Kumar Bhadra" <sr****@yahoo.com> writes:
Hello,
I see that it is possible to use mmapfile.pyd of win32all. The same is
mentioned in http://www.python.org/windows/win32/#mmapfile.

Unfortunately I could not trace any example using mmapfile.

Any example or link to an example will be of help. I am interested to
learn how to achieve efficient sharing of data between separate
processes using mmapfile.


You can even create a shared memory mapped file for sharing data
between processes on Windows in pure Python. It's not really obvious
from the mmap description, but calling

shmem = mmap.mmap(0, 32000, "spam")

creates (or opens, if it already exists) a shared memory block,
not based an any existing file. In other words, the fileno (first
parameters) must be 0, and the last one specifies the system wide name
of the shared memory block.

Thomas
Jul 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.