[Python-Dev] Declaring setters with getters

Guido van Rossum guido at python.org
Thu Nov 1 00:36:42 CET 2007


On 10/31/07, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
> Guido van Rossum wrote:
> > Isn't there? You can just use super() ISTR,
>
> That may work, now that I come to think about it.
>
> However, super() is not a complete solution, because
> it doesn't let you choose which inherited method
> to call in a multiple inheritance situation.

Yes, that's the point of super().

if you want more control, you can just get the property object out of
the class you want -- super() doesn't have supernatural powers, all it
does is pick the class for you. :-)

-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)


More information about the Python-Dev mailing list