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

Cameron Simpson cs at zip.com.au
Mon Feb 13 08:23:39 CET 2012


On 13Feb2012 15:59, Zheng Li <dllizheng at 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 at 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.



More information about the Python-list mailing list