Re: how to copy PyObject * memory data to another memory address?

2015-11-08 Thread Laura Creighton
In a message of Sat, 07 Nov 2015 21:23:51 +0800, yueyoum writes: >I'm working on a C program that has Python embedded. The host program is multi >processes, which communicate via shared memory (mmap). I create a Python >object (e.g., PyDict_New) in one process. How can I copy this data to shared

Re: how to copy PyObject * memory data to another memory address?

2015-11-08 Thread Chris Angelico
On Sun, Nov 8, 2015 at 12:23 AM, yueyoum wrote: > I'm working on a C program that has Python embedded. The host program is > multi processes, which communicate via shared memory (mmap). I create a > Python object (e.g., PyDict_New) in one process. How can I copy this data to > shared memory so

how to copy PyObject * memory data to another memory address?

2015-11-08 Thread yueyoum
I'm working on a C program that has Python embedded. The host program is multi processes, which communicate via shared memory (mmap). I create a Python object (e.g., PyDict_New) in one process. How can I copy this data to shared memory so that the other process can obtain this data and convert t