Class equivalence?

Alex Martelli aleax at
Sat Dec 8 17:51:49 EST 2001

Bruce Eckel wrote:

>>>> class Flower: pass
>>>> class Daisy(Flower): pass
>>>> Daisy is Flower
> 0
> What am I missing here?

That Daisy isn't Flower?  They differ e.g. in their __name__ attribute.  So 
how could they be the same thing?


More information about the Python-list mailing list