determining method type (instance, static, class)

Michael Hudson mwh at python.net
Mon Jan 27 10:19:46 EST 2003


Alexander Schmolck <a.schmolck at gmx.net> writes:

> How can one determine whether a method .foo is a normal instance
> method or a classmethod or a staticmethod?

Using isinstance.  Why do you want to know?

Cheers,
M.

-- 
  No.  In fact, my eyeballs fell out just from reading this question,
  so it's a good thing I can touch-type.
                                    -- John Baez, sci.physics.research




More information about the Python-list mailing list