[Zope-dev] Creating ExtensionClass instances in C
Andrew Kuchling
akuchlin@mems-exchange.org
Thu, 13 Apr 2000 23:21:42 -0400 (EDT)
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