31 Jan
2005
31 Jan
'05
4:12 p.m.
Benjamin Schmeling wrote:
Hi, how can I expand my C++ class by adding a new contructor with PyLong as an parameter without changing my C++ Class. Is it possible?
I found out that if I define a function: void consructor(_object* a,long_ l){ } and overload the __init__ by .def("__init__", constructor) my constructor function is called. Now I have the problem that I don't know how to handle _object* and to realize my constructor. Benjamin