[pypy-dev] Mixed pypy and cpython with multiprocessing

Amaury Forgeot d'Arc amauryfa at gmail.com
Wed Dec 21 16:20:33 CET 2011


2011/12/21 Massa, Harald Armin <chef at ghum.de>

> Is this a bug? Or is multiprocessing not supposed to be compatible across
>> implementations? I would think it is, since it's just sockets with pickled
>> data, right?
>>
>> As much as I know, pickles are not exactly a data-exchange format. Being
> that in a Pickle something quite similiar to the internal memory
> representation of Python objects is serialized.
>
> And the internal memory representation of cPython to the PyPy one.
>

Pickle uses known byte order and sizes, and has a stable set of formats and
opcodes.
Pickles generated on one platform can be read on a different one;
even with different Python versions, even with PyPy vs. CPython.

Otherwise it's a bug, like this one :)

-- 
Amaury Forgeot d'Arc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pypy-dev/attachments/20111221/99d3c7c2/attachment.html>


More information about the pypy-dev mailing list