[socal-piggies] "processing" package

Grig Gheorghiu grig at gheorghiu.net
Mon Nov 27 13:26:12 PST 2006


Interesting package:

http://cheeseshop.python.org/pypi/processing/0.10

>From that page:

#  Author:  Richard Oudkerk <r m oudkerk at gmail com>  

Package for using processes which mimics the threading module

Package for using processes which mimics the threading module, and
allows the sharing of objects between processes. Communication between
processes happens via sockets or named pipes.

The 'processing.Process' class follows the API of 'threading.Thread'.
One can also use a manager to create shared objects. For instance

>>> from processing import Manager, Repr
>>> manager = Manager()
>>> l = manager.list(range(10))
>>> l.reverse()
>>> print l
<Proxy[list] object at 0x00c33470)>
>>> print Repr(l)
[9, 8, 7, 6, 5, 4, 3, 2, 1, 0]





More information about the socal-piggies mailing list