#!/usr/local/bin/python2 class C: def __init__(self): print 2 def f(self): pass print dir(C.f.__func__)