Can __iter__ be used as a classmethod?
Greg Ewing (using news.cis.dfn.de)
me at privacy.net
Mon Mar 10 22:19:54 EST 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