"help( pi )"

Gregory Ewing greg.ewing at canterbury.ac.nz
Fri Nov 17 16:27:07 EST 2017


It *could* be made to work:

     import math

     class PI(float):

         __doc__ =  "The circle constant (Note: tau is better :-)"

     math.pi = PI(math.pi)

     print(math.pi)
     help(math.pi)

-- 
Greg



More information about the Python-list mailing list