Path: csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed1.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.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'programmer': 0.03; 'preferably': 0.05; 'url:pipermail': 0.05; 'subject:Python': 0.06; 'attribute': 0.07; 'arguments,': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'suggest': 0.14; '"python"': 0.16; 'callable': 0.16; 'cet': 0.16; 'nicolas': 0.16; 'received:80.91.229.3': 0.16; 'received:dip0.t-ipconnect.de': 0.16; 'received:plane.gmane.org': 0.16; 'received:t-ipconnect.de': 0.16; 'wrote:': 0.18; 'replacing': 0.19; 'saying': 0.22; 'header :User-Agent:1': 0.23; 'him.': 0.24; 'script': 0.25; 'header:X -Complaints-To:1': 0.27; "doesn't": 0.30; 'statement': 0.30; 'directly,': 0.31; 'object.': 0.31; 'url:python': 0.33; 'objects': 0.35; 'url:org': 0.36; 'ahead': 0.38; 'to:addr:python-list': 0.38; 'explain': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'url:mail': 0.40; 'matter': 0.61; 'making': 0.63; 'details': 0.65; 'mar': 0.68; '[python-dev]': 0.84; 'otten': 0.84; 'pardon': 0.84; 'url:python-dev': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Peter Otten <__peter__@web.de> Subject: Re: Behavior of staticmethod in Python 3 Date: Sun, 24 Nov 2013 12:03:04 +0100 Organization: None References: <5290C30D.5060604@rece.vub.ac.be> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Gmane-NNTP-Posting-Host: p50849f72.dip0.t-ipconnect.de User-Agent: KNode/4.7.3 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: 30 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1385290954 news.xs4all.nl 15983 [2001:888:2000:d::a6]:57782 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:60360 Antoon Pardon wrote: > 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. Replacing "you" in your statement with "python" I was about to suggest to make staticmethod(func) callable when I found this had already been rejected: [Python-Dev] Making staticmethod objects callable? Nicolas Fleury nidoizo at yahoo.com Wed Mar 1 15:57:12 CET 2006 https://mail.python.org/pipermail/python-dev/2006-March/061948.html If you think you have compelling arguments, go ahead and explain them -- preferably on python-ideas.