Checking to see if m.im_self is the class works some of the time but doesn't seem to be 100% reliable (ex. if you use multiple decorators on a method.)
-
Please provide code examples of working/non-working scenarios.AJ.– AJ.2009-11-06 13:17:28 +00:00Commented Nov 6, 2009 at 13:17
-
1What's wrong with reading the source?S.Lott– S.Lott2009-11-06 13:22:10 +00:00Commented Nov 6, 2009 at 13:22
-
2Related: stackoverflow.com/questions/1259963/…Nadia Alramli– Nadia Alramli2009-11-06 13:34:01 +00:00Commented Nov 6, 2009 at 13:34
-
1Provocative answer, as you didn't specify what you want to achieve: Why do you even care? If you can invoke it - you're fine. If you can't - well, that can happen regardless whether it's a classmethod, staticmethod or instance method.digitalarbeiter– digitalarbeiter2009-11-06 13:34:27 +00:00Commented Nov 6, 2009 at 13:34
Add a comment
|