Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news2.arglkargh.de!diablo1.news.osn.de!news.osn.de!diablo2.news.osn.de!news.tele.dk!news.tele.dk!small.news.tele.dk!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: UNSURE 0.287 X-Spam-Level: ** X-Spam-Evidence: '*H*': 0.64; '*S*': 0.22; 'programmer': 0.03; 'subject:Python': 0.06; 'attribute': 0.07; 'callable': 0.16; 'callable.': 0.16; 'saying': 0.22; 'header:User-Agent:1': 0.23; 'him.': 0.24; "shouldn't": 0.24; 'script': 0.25; 'header:In-Reply- To:1': 0.27; "doesn't": 0.30; 'directly,': 0.31; 'object.': 0.31; 'actual': 0.34; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'matter': 0.61; 'details': 0.65; 'legal': 0.71; 'delegated': 0.84; 'otten': 0.84; 'pardon': 0.84; 'received:195.238': 0.84; 'received:195.238.6': 0.84; 'received:195.238.6.173': 0.84; 'received:belgacom.be': 0.84; 'received:isp.belgacom.be': 0.84; 'received:mailrelay007.isp.belgacom.be': 0.84 X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApMBAIDCkFJbs/Xy/2dsb2JhbAANTL0tgwOBL4MZAQEBAwF4EQshFg8JAwIBAgFFEwgCh3cLrWGKEYdQF48OFoQdA5gUlTs Date: Sat, 23 Nov 2013 16:00:29 +0100 From: Antoon Pardon User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20131005 Icedove/17.0.9 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Behavior of staticmethod in Python 3 References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Sat, 23 Nov 2013 22:28:03 +0100 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: 20 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1385242085 news.xs4all.nl 15874 [2001:888:2000:d::a6]:43495 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:60320 Op 23-11-13 10:01, Peter Otten schreef: > > Your script is saying that a staticmethod instance is not a callable object. > It need not be because > > Foo.foo() > > doesn't call the Foo.foo attribute directly, it calls > > Foo.foo.__get__(None, Foo)() I think you are burdening the programmer with implemantation details that don't matter to him. IMO if Foo.foo() is legal then Foo.foo is callable. That the actual call is delegated to Foo.foo.__get__(None, Foo) shouldn't matter. -- Antoon Pardon