Modifying PyObject.ob_type

Hallvard B Furuseth h.b.furuseth at usit.uio.no
Mon May 8 06:00:07 EDT 2006


I've got some fixed-size types with identical object layout defind in C.
The only differences are: Which methods they have, the name, and some
are subtypes of others.

Can I modify the ob_type of their instances, to switch between which of
these types an object has?

-- 
Hallvard



More information about the Python-list mailing list