Transparent C++ & Python twin classes?

Rainer Deyke root at rainerdeyke.com
Sun Apr 15 21:42:33 EDT 2001


"Aaron Drew" <ripper at hotkey.net.au> wrote in message
news:3ada4bb9$1 at news.iprimus.com.au...
> I'm looking into using Python as a scripting language for a game but I'm
> having trouble finding documentation regarding dual representations of
class
> instances as both python accessible objects and C++ class instances.
>
> I need to write the bulk of the code in C++ and require use of C++ class
> attributes.
>
> All of the examples I've seen of python to C++ extensions seem to avoid
the
> problem of C++ class attributes by declaring extern "C" functions as
python
> class methods and calling the results a python/C++ bridge. Is it possible
> for me to store, say 'int x' in a C++ class and refer to it as myobject.x
in
> python?

http://www.boost.org


--
Rainer Deyke (root at rainerdeyke.com)
Shareware computer games           -           http://rainerdeyke.com
"In ihren Reihen zu stehen heisst unter Feinden zu kaempfen" - Abigor





More information about the Python-list mailing list