开发者

Complex data structures while embedding\extending Python with C++

开发者 https://www.devze.com 2023-03-03 12:58 出处:网络
Python documentation gives a nice introduction to Extending and Embedding Python with C\\C++. However, in many cases there\'s a need to transfer com开发者_运维知识库plex data structures between the la

Python documentation gives a nice introduction to Extending and Embedding Python with C\C++. However, in many cases there's a need to transfer com开发者_运维知识库plex data structures between the languages.

What would be the best way to achieve this?


Create your own type and fill the tp_*attr members appropriately.


IIRC Boost.Python http://www.boost.org/doc/libs/1_54_0/libs/python/doc/index.html will do a lot of the heavy lifting for you here.

0

精彩评论

暂无评论...
验证码 换一张
取 消