Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #6257
| 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 | <ian.g.kelly@gmail.com> |
| 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 | <aed43cea-eae7-40d5-a3c9-13b841d3fd7c@c41g2000yqm.googlegroups.com> |
| References | <aed43cea-eae7-40d5-a3c9-13b841d3fd7c@c41g2000yqm.googlegroups.com> |
| From | Ian Kelly <ian.g.kelly@gmail.com> |
| Date | Wed, 25 May 2011 12:31:33 -0600 |
| Subject | Re: super() in class defs? |
| To | Python <python-list@python.org> |
| 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 <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.2087.1306348325.9059.python-list@python.org> (permalink) |
| 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 |
Show key headers only | View raw
On Wed, May 25, 2011 at 11:54 AM, Jess Austin <jess.austin@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
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
super() in class defs? Jess Austin <jess.austin@gmail.com> - 2011-05-25 10:54 -0700
Re: super() in class defs? Ian Kelly <ian.g.kelly@gmail.com> - 2011-05-25 12:31 -0600
Re: super() in class defs? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-05-25 21:40 +0000
Re: super() in class defs? Ian Kelly <ian.g.kelly@gmail.com> - 2011-05-25 17:31 -0600
Re: super() in class defs? Raymond Hettinger <python@rcn.com> - 2011-05-25 16:45 -0700
csiph-web