[Python-ideas] Explicit self argument, implicit super argument

Greg Ewing greg.ewing at canterbury.ac.nz
Wed Nov 21 01:43:20 CET 2007


Jim Jewett wrote:

> I would say it it almost always appropriate.  The times it fails are when

(5) Someone multiply-inherits from your class, and you end
up calling one of their methods instead of yours, when neither
your method or their method is expecting this to happen.

Plus various other problems. There's a good discussion of
the issues here:

http://fuhm.net/super-harmful/

--
Greg



More information about the Python-ideas mailing list