[issue21501] submitting mmap example for use in documentation

2014-05-13 Thread Steve Foley
Steve Foley added the comment: sorry! this is the correct version ;-) --- import mmap, os, select NUM_CHILDREN = 30 MSG_LEN = 9 BUF_LEN = NUM_CHILDREN * MSG_LEN buf = mmap.mmap(-1, BUF_LEN) p = select.poll() def write_buffer(i): msg = '%s\

[issue21501] submitting mmap example for use in documentation

2014-05-13 Thread Steve Foley
New submission from Steve Foley: Hello, I would like to submit an example for the mmap docs page. It demonstrates the use of shared memory and message passing between processes. Thanks! import mmap, os, select NUM_CHILDREN = 30 MSG_LEN = 8 BUF_LEN = NUM_CHILDREN