(original) (raw)
From: michele.simionato@gmail.com <michele.simionato@gmail.com>
Date: Mon, Aug 25, 2008 at 12:13 AM
> Hi Michele,
>
> Do you have a URL for this blog?
http://www.artima.com/weblogs/index.jsp?blogger=micheles
---------- Forwarded message ----------
Date: Mon, Aug 25, 2008 at 1:15 AM
It's a bit too informal, personal, and opinionative to be used as "documentation" IMHO but it could certainly be cleaned up without being rewritten.
Of interest though, is this:
"The first sentence is just plain wrong: super does not return the
superclass."
From what I remember of using super, this statement is true, and the documentation is wrong (or at least over-simplifies things).
http://docs.python.org/dev/library/functions.html#super
http://docs.python.org/dev/3.0/library/functions.html#super
Perhaps this should be amended? (A brief statement to the effect of super creating a proxy object which can call the methods of any base class). It actually mentions the "super object" later, even though it claims to be returning the superclass.
Also Michele, looks as if super in Python 3 works about the same but has the additional feature of supporting 0 arguments, in which case it defaults to super(this_class, first_arg). (Does not create unbound super objects).
Matt