Using C++ classes in python
Michael Andersson
a98mican at ida.his.se
Wed Jan 29 16:52:00 EST 2003
Hi!
Is it possible to create a class in C++ that can be instansiated in a
python script?
I currently solve this by creating a static data member in each class
that points to an instance of the class. Then each registered static
member function uses this pointer to access the correct instance each
time a static member functions is called from a python script. This
approach is far from optimal.
Or is there a better approach?
Best regards,
/Mickey
More information about the Python-list
mailing list