super() in class defs?

Ian Kelly ian.g.kelly at gmail.com
Wed May 25 14:31:33 EDT 2011


On Wed, May 25, 2011 at 11:54 AM, Jess Austin <jess.austin at gmail.com> wrote:
> So I guess that when super() is called in the context of a class def
> rather than that of a method def, it doesn't have the information it
> needs. Now I'll probably just say:
>
>    do_GET = do_decorate(CGIHTTPRequestHandler.do_GET)
>
> but I wonder if there is a "correct" way to do this instead? Thanks!

I would recommend against using super() in general.

http://fuhm.net/super-harmful/

Cheers,
Ian



More information about the Python-list mailing list