Multiprocessing, shared memory vs. pickled copies

John Ladasky ladasky at my-deja.com
Thu Apr 7 03:41:13 EDT 2011


Following up to my own post...

On Apr 6, 11:40 pm, John Ladasky <lada... at my-deja.com> wrote:

> What's up with that?

Apparently, "what's up" is that I will need to implement a third
method in my ndarray subclass -- namely, __reduce__.

http://www.mail-archive.com/numpy-discussion@scipy.org/msg02446.html

I'm burned out for tonight, I'll attempt to grasp what __reduce__ does
tomorrow.

Again, I'm going to point out that, given the extent that
multiprocessing depends upon pickling, pickling should be made
easier.  This is Python, for goodness' sake!  I'm still surprised at
the hoops I've got to jump through.



More information about the Python-list mailing list