> Fredrik Lundh wrote: > > > no need to wait for Guido for this: adding library support for shared- > > memory dictionaries/lists is a no-brainer. if you have experience in > > this field, start hacking. I'll take care of the rest ;-) > > and you don't need to wait for Python 3000 either, of course -- if done > right, this would certainly fit into some future 2.X release.
Here's a straight wrapper around the OSSP mm shared memory library: http://70.103.91.130/~michel/pymm-0.1.tgz I've only minimally tested it on AMD64 linux. It exposes mm shared memory regions as buffers and only wraps the "Standard" mm API. Hacking the Python memory system to put objects in shared memory is too deep for me. Included is a test that uses cPickle to share object state between forked processes. It needs a lot more testing and tweaking but it works as a proof of concept. -Michel _______________________________________________ Python-3000 mailing list [email protected] http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com
