[C++-sig] call PyInstance_New with parameters

Dmitri Mouromtsev dimour at mail.ru
Fri May 23 08:59:12 CEST 2003


Hello,

I need to call python obect constructor with parameter(s), for instance:
class MyObj:

    def __init__(self, name):

        self.__name__ = name


How can I do it with PyInstance_New(), what should be as  *arg, *kw
parameters in this function?

Thanks

Dmitri






More information about the Cplusplus-sig mailing list