[Python-Dev] Feature request: better support for "wrapper" objects

Jack Jansen jack@oratrix.nl
Wed, 09 Jan 2002 16:00:32 +0100


> > You cannot do this currently, because there is no way to get from the type 
> > object (which is the only thing you have available in Python) to the functions 
> > you need to pass to O&.
> 
> In Python 2.2, the type object can itself be an instance, and you could call
> classmethods on it...
> I'm doing something similar on windows.

Could you explain how you do this? If I have the typeobject, how would I get 
to the address of the "int (*converter)(PyObject *, void *)" function?

--
- Jack Jansen        <Jack.Jansen@oratrix.com>        http://www.cwi.nl/~jack -
- If I can't dance I don't want to be part of your revolution -- Emma Goldman -