Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.014 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'subject:Python': 0.06; 'compiler': 0.07; 'referring': 0.07; 'arguments': 0.09; 'classes.': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'assume': 0.14; 'magic': 0.16; 'obviously,': 0.16; 'to:addr:pearwood.info': 0.16; 'to:addr:steve+comp.lang.python': 0.16; "to:name:steven d'aprano": 0.16; 'wrote:': 0.18; 'feb': 0.22; 'cc:addr:python.org': 0.22; 'mon,': 0.24; 'cc:2**0': 0.24; 'defined': 0.27; 'header:In-Reply-To:1': 0.27; 'function': 0.29; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; "d'aprano": 0.31; 'steven': 0.31; 'class': 0.32; 'probably': 0.32; 'subject: (': 0.35; "can't": 0.35; 'but': 0.35; 'received:google.com': 0.35; 'method': 0.36; 'does': 0.39; 'truly': 0.60; 'such': 0.63; 'skip:n 10': 0.64; 'body.': 0.68; 'realized': 0.68; 'subject:! ': 0.74; '2015': 0.84; 'subject:!)': 0.84; 'faith': 0.91; 'anywhere,': 0.93 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=pYK61AJ+1RmJQHv5EL2eaY/POlHvwAzd5+5kpn9sugM=; b=aq769/PvlqDR1WQMaStxpbz6OgmQIywrOa9Cfgr0rTUNyJmL+qv5fQARimWosPqe4n UGIR6DMKkRiKN1V+BrCzi2evCv3TH2zN24l8kezLlpGsG/ydysfnUYtrGbZ23a6bE+FN keap1t+FMj4DKX3WItnaKDmnAzSA9unm0eDMQQHHePF8KES0zJznf8ZHc8sXn7sZmge5 Y6XxCyVXfoFE/CxpMuR/dUcmjJJHJHUSLXMh2pAjXeyS7/6QEgxaWl4tnVbKwQHWpg5R zZAcH+Wc7FmaRtLJ5mLyl85on3XvWvAmRg00Kq8HEBbig2xGNYQVkoM5WcZrdh89OASx Jr+A== X-Received: by 10.140.82.42 with SMTP id g39mr1736440qgd.42.1422955575553; Tue, 03 Feb 2015 01:26:15 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <54cf87b8$0$12991$c3e8da3$5496439d@news.astraweb.com> References: <54c07d04$0$13012$c3e8da3$5496439d@news.astraweb.com> <54ca583e$0$13005$c3e8da3$5496439d@news.astraweb.com> <54ccc2fc$0$13009$c3e8da3$5496439d@news.astraweb.com> <54cd9a7a$0$12984$c3e8da3$5496439d@news.astraweb.com> <54ce526a$0$13012$c3e8da3$5496439d@news.astraweb.com> <54cf242d$0$12991$c3e8da3$5496439d@news.astraweb.com> <54cf6836$0$12996$c3e8da3$5496439d@news.astraweb.com> <54cf87b8$0$12991$c3e8da3$5496439d@news.astraweb.com> From: Devin Jeanpierre Date: Tue, 3 Feb 2015 01:25:35 -0800 Subject: Re: dunder-docs (was Python is DOOMED! Again!) To: "Steven D'Aprano" Content-Type: text/plain; charset=UTF-8 Cc: "comp.lang.python" X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 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: 19 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1422955577 news.xs4all.nl 2908 [2001:888:2000:d::a6]:35810 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:85126 On Mon, Feb 2, 2015 at 6:20 AM, Steven D'Aprano wrote: > Devin Jeanpierre wrote: >> Oops, I just realized why such a claim might be made: the >> documentation probably wants to be able to say that any method can use >> super(). So that's why it claims that it isn't a method unless it's >> defined inside a class body. > > You can use super anywhere, including outside of classes. The only thing you > can't do is use the Python 3 "super hack" which automatically fills in the > arguments to super if you don't supply them. That is compiler magic which > truly does require the function to be defined inside a class body. But you > can use super outside of classes: Obviously, I was referring to no-arg super. Please assume good faith and non-ignorance on my part. -- Devin