1 2 3 4 5 6 7 8
>>> def f(): pass >>> f.__repr__ <method-wrapper '__repr__' of function object at 0x011BED30> >>> f.__repr__ = 42 >>> repr(f) '<function f at 0x011BED30>'