self-inheritance...

Roman Suzi rnd at onego.ru
Wed Sep 5 22:14:00 CEST 2001


Interestingly enough, it works as expected:

>>> class Dolly:
...    def a(s): pass
...
>>> class Dolly(Dolly):
...    def b(s): pass
...
>>> a = Dolly()
>>> a.
a.__class__(  a.__doc__     a.__module__  a.a(          a.b(

Are there any means first Dolly-class could use to
intervene into inheritance mechanism and spoil
it?

Sincerely yours, Roman Suzi
-- 
_/ Russia _/ Karelia _/ Petrozavodsk _/ rnd at onego.ru _/
_/ Wednesday, September 05, 2001 _/ Powered by Linux RedHat 6.2 _/
_/ "... Clinton sandwich: $5 of baloney and $20 in taxes" _/





More information about the Python-list mailing list