multiprocessing pipes with custom pickler

skunkwerk skunkwerk at gmail.com
Tue Jun 18 13:47:23 EDT 2013


Hi,
   I need inter-process communication in Python, and was looking at the documentation here:
http://docs.python.org/2/library/multiprocessing.html

I am using a custom pickler, though, in order to deal with some objects that are not serialize-able through the built-in pickler.  Is there any way to tell the pipe's send method to use my pickler?

I could also just send my already-pickled binary data using the existing send method, but pickling/unpickling twice seems like a hack.

Maybe the send_bytes method would be the best option, if it doesn't pickle the data?

thanks for the help,
imran



More information about the Python-list mailing list