Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #20335

Re: how to tell a method is classmethod or static method or instance method

Path csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <cameron@cskk.homeip.net>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.004
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'received:edu.au': 0.07; 'subject:method': 0.09; 'from:addr:cs': 0.16; 'from:addr:zip.com.au': 0.16; 'from:name:cameron simpson': 0.16; 'message-id:@cskk.homeip.net': 0.16; 'out?': 0.16; 'received:202.125.174': 0.16; 'received:202.125.174.133': 0.16; 'received:boardofstudies.nsw.edu.au': 0.16; 'received:cskk.homeip.net': 0.16; 'received:harvey.boardofstudies.nsw.edu.au': 0.16; 'received:homeip.net': 0.16; 'received:nsw.edu.au': 0.16; 'subject: \n ': 0.16; 'subject:instance': 0.16; 'cc:addr:python- list': 0.16; 'question.': 0.16; 'wrote:': 0.18; 'instance': 0.18; 'cheers,': 0.20; 'maybe': 0.21; 'header:In-Reply-To:1': 0.22; 'static': 0.24; 'cc:2**0': 0.26; 'figure': 0.26; "i'm": 0.28; 'class': 0.29; 'cc:addr:python.org': 0.29; 'quite': 0.31; 'actually': 0.31; 'does': 0.32; 'header:User-Agent:1': 0.33; 'received:au': 0.36; 'question': 0.36; 'charset:us-ascii': 0.37; 'subject:how': 0.39; 'here.': 0.64; 'received:202': 0.66; 'cause': 0.67; 'cameron': 0.77; 'serious': 0.78; 'mr.': 0.85; 'subject:tell': 0.91
Date Mon, 13 Feb 2012 18:23:39 +1100
From Cameron Simpson <cs@zip.com.au>
To Zheng Li <dllizheng@gmail.com>
Subject Re: how to tell a method is classmethod or static method or instance method
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Disposition inline
In-Reply-To <E064CE77-0EB1-4D0B-9A47-E515EA621248@gmail.com>
User-Agent Mutt/1.5.21 (2010-09-15)
References <E064CE77-0EB1-4D0B-9A47-E515EA621248@gmail.com>
Cc python-list <python-list@python.org>
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.5755.1329117810.27778.python-list@python.org> (permalink)
Lines 25
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1329117810 news.xs4all.nl 6983 [2001:888:2000:d::a6]:34148
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:20335

Show key headers only | View raw


On 13Feb2012 15:59, Zheng Li <dllizheng@gmail.com> wrote:
| how to tell a method is class method or static method or instance method?

Maybe a better question is:
  under what circumstances do you need to figure this out? 

I'm actually quite serious here. Please outline what circumstances cause
you to want to ask and answer this question.

Cheers,
-- 
Cameron Simpson <cs@zip.com.au> DoD#743
http://www.cskk.ezoshosting.com/cs/

Reason #173 to fear technology:

    o       o       o       o       o       o      <o      <o>
   ^|\     ^|^     v|^     v|v     |/v     |X|      \|      |
    /\      >\     /<       >\     /<       >\     /<       >\

    o>      o       o       o       o       o       o       o
    \       x      </      <|>     </>     <\>     <)>      |\
   /<       >\     /<       >\     /<       >\      >>      L

             Mr. email does the Macarena.

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: how to tell a method is classmethod or static method or instance method Cameron Simpson <cs@zip.com.au> - 2012-02-13 18:23 +1100

csiph-web