embedding python and new-style classes
mike
me at no.where
Mon Sep 29 14:59:12 EDT 2003
> I'm relatively new at extending/embedding so I don't know if this has
> changed, but doing this recently I simply noted that Python class
> objects are callables and that calling them returns an instantiation.
> I use Boost.Python, but I imagine you can simply use
> PyObject_CallMethod with the class object.
Good point - I just tried using PyObject_Call(), and that seems to work.
Thanks for the help!
mike
More information about the Python-list
mailing list