from math import pidef get_pi(dummy): return piclass PI(object): pi = property(get_pi, doc='Constant "pi"')inst = PI()print inst.piprint PI.pi.__doc__