14 Apr
2000
14 Apr
'00
3:21 a.m.
James Henstridge writes:
Have you tried calling it? That seems to be what python does in order to create instances. Something like: instance = PyObject_CallFunction((PyObject *)extension_class, "formatstring", constructor_args);
After a bit of poking around in Python's .h files, it seems as if PyObject_NEW() works. Hmmm... but does it call the __init__ method? Maybe your solution is the correct one. Jim, any idea? --amk