On Sat, Nov 18, 2017 at 8:27 AM, Gregory Ewing <greg.ew...@canterbury.ac.nz> wrote: > 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)
How is THAT an improvement? Docstrings aren't supposed to give false information! *diving for cover* ChrisA -- https://mail.python.org/mailman/listinfo/python-list