[Pyrex] Special Methods of Extension Types: inheritance

Simon Burton simon at arrowtheory.com
Wed Aug 3 05:18:39 CEST 2005


On Wed, 03 Aug 2005 14:43:22 +1200
Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:

> 
> Simon Burton wrote:
> 
> > The python counterpart to __int__ is inherited:
> 
> > But, as far as i can tell, this is not how the Pyrex __int__ works.
> 
> I wasn't aware of this. If it's as you say, then it's
> a bug. I'll look into it.

Whoops: I went and checked this some more. 

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.

Simon.

-- 
Simon Burton, B.Sc.
Licensed PO Box 8066
ANU Canberra 2601
Australia
Ph. 61 02 6249 6940
http://arrowtheory.com 



More information about the Pyrex mailing list