[issue21501] submitting mmap example for use in documentation

2016-11-06 Thread Guido van Rossum
Guido van Rossum added the comment: Can you say it in the form of a patch? -- nosy: +gvanrossum ___ Python tracker ___ ___ Python-bugs

[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\t%d\n' %

[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 * MSG_LE