Yet Another Case Question

Roy Smith roy at panix.com
Mon Feb 24 09:36:14 EST 2003


Alex Martelli  <aleax at aleax.it> wrote:
> Don't you think math.pi IS a constant?  Yet it's not in ALLCAPS,
> isn't it?

Actually, math.PI isn't a constant.  Python is perfectly happy to let
me do:

>>> import math
>>> math.PI = 3
>>> print math.PI
3

Whether this is a good thing or a bad thing could be debated.




More information about the Python-list mailing list