Can __iter__ be used as a classmethod?

Greg Ewing (using news.cis.dfn.de) me at privacy.net
Tue Mar 11 04:19:54 CET 2003


Giovanni Bajo wrote:
> it seems that the word 'inheritance' has been abused in this context:
> Is there a more correct word for this? 'meta-inheritance'? :)

I think what's being said is that the "is-a" relationship
is not transitive, i.e, isinstance(a, b) and isinstance(b, c)
does not imply insinstance(a, c).

-- 
Greg Ewing, Computer Science Dept,
University of Canterbury,	
Christchurch, New Zealand
http://www.cosc.canterbury.ac.nz/~greg





More information about the Python-list mailing list