[Python-ideas] An error in multiprocessing on MacOSX?

Richard Oudkerk shibturn at gmail.com
Tue Nov 27 14:24:02 CET 2012


On 27/11/2012 12:26am, Sturla Molden wrote:
> Hmm, last time I looked at the code it used handle inheritance on Windows,
 > which was why e.g. a lock or a file could not be sent over a pipe or 
queue.

In 3.3 on Windows, connection objects can be pickled using a trick with 
DuplicateHandle() and DUPLICATE_CLOSE_SOURCE.  The same could be done 
for locks fairly easily.  But on Unix I cannot see a way to reliably 
manage the life time of picklable locks.

-- 
Richard




More information about the Python-ideas mailing list