[pypy-dev] serialize and deserialize objects in Pypy

Carl Friedrich Bolz cfbolz at gmx.de
Fri Aug 7 12:27:48 CEST 2015


Can't you use pickle or the json module? 

Cheers, 

Carl Friedrich

On August 7, 2015 12:24:05 PM GMT+02:00, Maciej Fijalkowski <fijall at gmail.com> wrote:
>you can use cffi buffers (e.g. cffi char*) that you manipulate from
>python using wrappers. They would behave (sort of) like python objects
>and the wrapper code is really not a performance penalty in most cases
>
>On Fri, Aug 7, 2015 at 12:19 PM, Yicong Huang <hengha.mao at gmail.com>
>wrote:
>> Hi,
>>
>> Are there any good methods to serialize Pypy object to C++ char* and
>> deserialize to Pypy object from  C++ char*?
>>
>> Our scenario like this:
>> We have at least two C++ process running, and each process embeded
>Pypy to
>> execute some functions.
>> And we woule like to reuse Pypy object from one process to another
>process.
>> For primitive objects, int/char/bool/double etc., we could use cffi
>to pass
>> objects.
>> Pypy object -> c++ process 1 -> c++ process 2 -> Pypy object
>>
>> But for complex objects, e.g. list/array/dict/tuple, are there any
>methods?
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> pypy-dev mailing list
>> pypy-dev at python.org
>> https://mail.python.org/mailman/listinfo/pypy-dev
>>
>_______________________________________________
>pypy-dev mailing list
>pypy-dev at python.org
>https://mail.python.org/mailman/listinfo/pypy-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pypy-dev/attachments/20150807/342f9177/attachment.html>


More information about the pypy-dev mailing list