How to inheritance overwrite non virtual?

Axel Straschil axel at
Thu Sep 18 19:02:01 CEST 2003


> What you want seems to be
> class KObject:
>     def bestCaptionlong(self):
>         # class made explicit to guard against overriding
>         return KObject.bestCaption(self) 

Yes, that behaves the way I excpected, thank's to you and the other
for helping me!

> Do-nothing accessor methods may be acceptable style in C++ but are
> superfluous in Python.

I'm afraid I'm still not thinking in python, I'll work on it ;-)


More information about the Python-list mailing list