How to inheritance overwrite non virtual?

Axel Straschil axel at pizza.home.kosnet.com
Thu Sep 18 13:02:01 EDT 2003


Hello!

> 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 ;-)

Lg, AXEL.




More information about the Python-list mailing list