incubator-allura-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cory Johns <cjo...@slashdotmedia.com>
Subject Re: Tutorials on Allura plugin development
Date Wed, 26 Jun 2013 15:35:40 GMT
On Wed, Jun 26, 2013 at 9:34 AM, Dave Brondsema <dave@brondsema.net> wrote:

>
> On
>
> https://sourceforge.net/u/vansteenburgh/allura-plugin-development/2013/06/part-1-getting-started/#creating-the-plugin-application
> line 15, isn't that the old-style way to call a parent.  Would using
> super() be
> better?
>

https://fuhm.net/super-harmful/ vs
http://rhettinger.wordpress.com/2011/05/26/super-considered-super/

Super is good, but its existence means that, *especially* for __init__, if
there's ever any possibility of your class being subclassed (even if you
don't think it will; so, always), you should always use super, and always
accept and pass *args and **kwargs.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message