1 2 3 4 5 6 7 8 9
In [1]: def f(): ...: pass ...: In [2]: f.__repr__() Out[2]: '<function f at 0x8ef264c>' In [3]: repr(f) Out[3]: '<function f at 0x8ef264c>'