Possible constant assignment operators ":=" and "::=" for Python

Ben Sizer kylotan at gmail.com
Tue May 2 16:48:03 CEST 2006

tsaar2003 at yahoo.com wrote:
> To begin with I'd like to apologize that I am not very experienced
> Python programmer so please forgive me if the following text does not
> make any sense.
> I have been missing constants in Python language. There are some
> workarounds available, for example the const-module. To me, this looks
> quite cumbersome and very unintuitive. For the interpreter, in the
> efficiency-wise, I just cannot tell.

The question is, why have you been missing them? Constants serve a
variety of purposes in other languages, some of which might not be
worthwhile in Python. There was a thread about 'symbols' a while back
which covers many of the uses of constants.

Ben Sizer

More information about the Python-list mailing list