Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.012 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'wed,': 0.03; 'context': 0.04; 'def': 0.12; '25,': 0.12; 'am,': 0.14; 'wrote:': 0.14; 'general.': 0.16; 'subject:() ': 0.16; 'thanks!': 0.16; 'cheers,': 0.19; 'guess': 0.19; 'header:In-Reply-To:1': 0.21; 'received:209.85.161.46': 0.23; 'received:mail- fx0-f46.google.com': 0.23; 'wonder': 0.23; "doesn't": 0.25; 'received:209.85.161': 0.26; 'message-id:@mail.gmail.com': 0.28; 'subject:?': 0.29; 'class': 0.29; 'austin': 0.30; 'to:addr:python- list': 0.33; 'rather': 0.34; "i'll": 0.34; 'there': 0.35; 'using': 0.35; 'probably': 0.36; 'received:google.com': 0.37; 'received:209.85': 0.37; 'but': 0.38; 'subject:: ': 0.38; 'called': 0.39; 'received:209': 0.39; 'skip:d 40': 0.39; 'to:addr:python.org': 0.39; 'url:net': 0.63; '11:54': 0.84; 'jess': 0.84; 'subject:class': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type:content-transfer-encoding; bh=fq0Z7+PRBlOs7CUnZOEW3OI9PPNX+wK9meX588ELeLs=; b=EC+jQ0rELFGZILPjVgfleZyt3ndv67tRIbTp4bWBLTEhdwVtXp6e+J0D6CENUiy6GE aXpXjZQtHyJs8Y/ysUCibLs1VWqBXn4AKgh/1E5N446tu8w4Hc/PCnOJm286WsP4YnkU HKSU0t2A9TxVDK9uUEPtuNVX+Ik7V63VZRRjM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=seCOsUyN0VL5OarSuWZrovsHnwT5N1s+mbuSw6Q2R4VpMilXSANzS0b+yCWzfcBa4J dalth80Abj/7DXVpqjE1TeEk2Bh6/Ks9AQGyRSz7cE55psQUCjPkE6mkeZRoh0sUrAet 5Qowk+HHpRf4tRmHvxPEoeUXT6MeHUUi5dOhU= MIME-Version: 1.0 In-Reply-To: References: From: Ian Kelly Date: Wed, 25 May 2011 12:31:33 -0600 Subject: Re: super() in class defs? To: Python Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 16 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1306348325 news.xs4all.nl 49175 [::ffff:82.94.164.166]:47536 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:6257 On Wed, May 25, 2011 at 11:54 AM, Jess Austin 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: > > =A0 =A0do_GET =3D 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