How do you create constants?

Fredrik Lundh fredrik at effbot.org
Wed Nov 1 00:13:30 CET 2000


Alex Martelli wrote:
> This is not really feasible in Python -- you can
> approximate it with, say, "const.pi"

math.pi

> Not a major point, but convincing oneself that
> one "doesn't `need` true constants" is no great
> idea IMHO.  For suitably strict definitions of
> `need`, we don't `need` computers at all, do we?

yeah, whatever.

</F>





More information about the Python-list mailing list