[Python-Dev] Extending types in C - help needed
Thomas Heller
thomas.heller@ion-tof.com
Fri, 18 Jan 2002 21:06:23 +0100
> > Also, the method seems rather complicated for doing a simple thing. The
> > only thing I really want is a way to refer to an _New or _Convert method
> > from Python code.
>
> I believe the attached code implements your requirements.
Yes, this looks very much like what I had in mind, except that you
demonstrate how to store and retrieve a C structure in the type's tp_dict.
Nice intro into PyCObject!
Thanks,
Thomas