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


Groups > comp.lang.python > #98459 > unrolled thread

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

Started byyueyoum <yueyoum@gmail.com>
First post2015-11-07 21:23 +0800
Last post2015-11-07 21:23 +0800
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

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

 yueyoum <yueyoum@gmail.com> - 2015-11-07 21:23 +0800

#98459 — how to copy PyObject * memory data to another memory address?

Fromyueyoum <yueyoum@gmail.com>
Date2015-11-07 21:23 +0800
Subjecthow to copy PyObject * memory data to another memory address?
Message-ID<mailman.134.1446997008.16136.python-list@python.org>
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 to Python Object? 发自网易邮箱大师

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web