Python 2.7.x - problem with obejct.__init__() not accepting *args and **kwargs

Ian Kelly ian.g.kelly at gmail.com
Wed May 15 11:41:35 EDT 2013


On Wed, May 15, 2013 at 6:16 AM, Oscar Benjamin
<oscar.j.benjamin at gmail.com> wrote:
> I don't generally use super() but I did see some advice about it in
> this article:
> https://fuhm.net/super-harmful/
>
> From the conclusion:
> "Never use positional arguments in __init__ or __new__. Always use
> keyword args, and always call them as keywords, and always pass all
> keywords on to super."

While that article is a good read, this one is a bit better on giving
advice about how to practically use super:

http://rhettinger.wordpress.com/2011/05/26/super-considered-super/



More information about the Python-list mailing list