Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #48649

multiprocessing pipes with custom pickler

Newsgroups comp.lang.python
Date 2013-06-18 10:47 -0700
Message-ID <39c00c39-e3a4-405b-98f5-4a67300b3ced@googlegroups.com> (permalink)
Subject multiprocessing pipes with custom pickler
From skunkwerk <skunkwerk@gmail.com>

Show all headers | View raw


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

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

multiprocessing pipes with custom pickler skunkwerk <skunkwerk@gmail.com> - 2013-06-18 10:47 -0700

csiph-web