newbie question: python and c++ objects

Courageous jkraska1 at san.rr.com
Sat Aug 5 17:27:10 EDT 2000


zander wrote:
> 
> Hello All
> 
> I am working on a game engine and I would like use python as my scripting
> language. Basicly I have a large amount of c++ objects (or libraries) and
> usually what I do to produce a new game is to create a c++ program to join
> all the objects the way I would like them to.
> 
> So my question is, is it possible to use c++ libraries in python.If possible
> could you explain how.

Yes, albeit python uses C bindings. Therefore, what you'll have to
do is offer C++ static class methods to the Python hooks inside
your C-python interface. Experiment around. You'll find it doable.



C//



More information about the Python-list mailing list