Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed2.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.072 X-Spam-Evidence: '*H*': 0.88; '*S*': 0.02; 'subject:Python': 0.06; 'def': 0.12; '24,': 0.16; 'agree.': 0.16; 'callable.': 0.16; 'foo():': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'wrote:': 0.18; '>>>': 0.22; "shouldn't": 0.24; 'pass': 0.26; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'skip:@ 10': 0.30; 'message-id:@mail.gmail.com': 0.30; 'class': 0.32; 'actual': 0.34; 'something': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'nov': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'legal': 0.71; 'case?': 0.84; 'delegated': 0.84; 'pardon': 0.84; 'absolutely': 0.87; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=F12wN2WuPnISurOyYSQa6OPNop+Zh6ssdBIwPQNCQYU=; b=0BX6roQPfSk0Xv6nSKpl5WFVS9hnjA6jE0G0b7KSclq5oJz48cXaQ0YobZn130i5TR oq7+eJs8Fsu2jb1/YLGBuapsQI12dEEa8lC1qdHmUxd2Crj3imTncnkUYkn9JWUV1xAJ bWZKDfGRGuNDJ7/sozlm5AZ0yguj1xkt9Pe/IhN7XAjfX/OXRSRcBDhQTcZLRCYUhklr jzJ8BLH4E1KX0b1RHzlQ5IrdUi6WceVR9KaPFH/91bGlmfeoBtz06trFr6tuxpUbnmcF K3yIX7MyBHxLey/rOJfaej6C95bQQ/9i9un9otkj0AVo6qkkFzTAUM/NBo/MaJKfyKYS p+ow== MIME-Version: 1.0 X-Received: by 10.69.8.162 with SMTP id dl2mr18873728pbd.1.1385242736500; Sat, 23 Nov 2013 13:38:56 -0800 (PST) In-Reply-To: <5290C30D.5060604@rece.vub.ac.be> References: <5290C30D.5060604@rece.vub.ac.be> Date: Sun, 24 Nov 2013 08:38:56 +1100 Subject: Re: Behavior of staticmethod in Python 3 From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 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: 1385242739 news.xs4all.nl 16002 [2001:888:2000:d::a6]:46512 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:60321 On Sun, Nov 24, 2013 at 2:00 AM, Antoon Pardon wrote: > 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. I absolutely agree. But isn't that already the case? I seem to be missing something here. >>> class Foo: @staticmethod def foo(): pass >>> callable(Foo.foo) True >>> callable(Foo().foo) True ChrisA