[Pyrex] Special Methods of Extension Types: inheritance

Greg Ewing greg.ewing at canterbury.ac.nz
Thu Aug 4 04:32:34 CEST 2005


Simon Burton wrote:

> I don't see how it works, but it looks like __int__ is inherited.
> Pyrex does not do it, so it must happen somewhere in the python type machinery.

Yes, it's done by PyType_Ready(), which does all
sorts of convoluted things to make builtin types
and Python types behave as similarly as possible.

Anyway, glad to hear it's okay.

-- 
Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | A citizen of NewZealandCorp, a	  |
Christchurch, New Zealand	   | wholly-owned subsidiary of USA Inc.  |
greg.ewing at canterbury.ac.nz	   +--------------------------------------+



More information about the Pyrex mailing list