Python's super() considered super!

sturlamolden sturlamolden at yahoo.no
Fri May 27 20:04:00 EDT 2011


On 27 Mai, 18:06, Steven D'Aprano <steve
+comp.lang.pyt... at pearwood.info> wrote:

> Why? The fault is not that super is a function, or that you monkey-
> patched it, or that you used a private function to do that monkey-
> patching. The fault was that you made a common, but silly, mistake when
> reasoning about type(self) inside a class.

That was indeed a silly mistake, but not what I am talking about.
See Stefan's reponse.


Sturla





More information about the Python-list mailing list