Prev: Basic Information about Python
Next: pylint scores
From: Hrvoje Niksic on 30 Jul 2010 08:38 Gregory Ewing <greg.ewing(a)canterbury.ac.nz> writes: > I think the point is that the name is misleading, because it makes it > *sound* like it's going to call a method in a superclass, when it fact > it might not. That is indeed confusing to some people, especially those who refuse to to accept the notion that "superclass" means the same as "next in MRO", maintaining instead that superclass refers to one of the base classes, their bases, etc. -- IMO a defensible position. super might have better been called next_in_mro, next_method, or next_class, except those are harder to type, and way less catchy than "super". The Dylan and CLOS operator that super is most closely based on is called (call-)next-method.
|
Pages: 1 Prev: Basic Information about Python Next: pylint scores |