multiprocessing pipes with custom pickler

S

skunkwerk

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top