<div dir="ltr">Had a brief offline discussion with Michele - forwarding.<br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername"><a href="mailto:michele.simionato@gmail.com">michele.simionato@gmail.com</a></b> <span dir="ltr"><<a href="mailto:michele.simionato@gmail.com">michele.simionato@gmail.com</a>></span><br>
Date: Mon, Aug 25, 2008 at 12:13 AM<br><br><div class="Ih2E3d">On Aug 24, 3:43 pm, "Matt Giuca" <<a href="mailto:matt.gi...@gmail.com">matt.gi...@gmail.com</a>> wrote:<br>
> Hi Michele,<br>
><br>
> Do you have a URL for this blog?<br>
<br>
</div>Sorry, here it is:<br>
<a href="http://www.artima.com/weblogs/index.jsp?blogger=micheles" target="_blank">http://www.artima.com/weblogs/index.jsp?blogger=micheles</a><br>
</div><br>---------- Forwarded message ----------<br><div class="gmail_quote">From: <b class="gmail_sendername">Matt Giuca</b> <span dir="ltr"><<a href="mailto:matt.giuca@gmail.com">matt.giuca@gmail.com</a>></span><br>
Date: Mon, Aug 25, 2008 at 1:15 AM<br><br><div dir="ltr">I skimmed (will read in detail later). As an "intermediate" (I'll describe myself as) Python developer, I tend not to use/understand super (I just call baseclassname.methodname(self,...) directly, so I guess I'm the target audience of this article. It's good - very informative and thorough.<br>
<br>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.<br><br>Of interest though, is this:<br>"The first sentence is just plain wrong: <tt><span>super</span></tt> does not return the
superclass."<br><br>From what I remember of using super, this statement is true, and the documentation is wrong (or at least over-simplifies things).<br><a href="http://docs.python.org/dev/library/functions.html#super" target="_blank">http://docs.python.org/dev/library/functions.html#super</a><br>
<a href="http://docs.python.org/dev/3.0/library/functions.html#super" target="_blank">http://docs.python.org/dev/3.0/library/functions.html#super</a><br>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.<br>
<br>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 <tt><span>super(this_class,</span> <span>first_arg)</span></tt>. (Does not create unbound super objects).<br>
<br>Matt<br></div>
</div></div>