Question about python and c++

EtherealGF

12-08-2008 17:35:18

Hi guys !!!

I'm sorry about my question because it has nothing related with python-ogre, but it was the most related thread I found about python and c++, so I have a couple questions :

- I'm thinking merge python and c++ in bidirectional way, c++ loads python scripts and python make calls to some c++ routines, my main app is c++ type, so I need to know if when I call the python script, it shares the same memory with my app? I mean if I have an object in my app, can I modify it in my python script ?

- And the last, can you give a reference or link to a tutorial that helps me to call my c++ routines from python?

Thanks a lot for any help !!!!

SiWi

13-08-2008 09:53:49

http://docs.python.org/ext/ext.html