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

Bruno Desthuilliers bdesth.quelquechose at free.quelquepart.fr
Tue May 2 20:32:12 EDT 2006


tsaar2003 at yahoo.com a écrit :
> Hi Pythonians,
> 
> 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. 

Why so ?

I guess you're talking about named (symbolic) constants ? If so, just 
follow the convention : a name in ALL_UPPERCASE is a constant (or at 
least will be treated as such by anyone not wanting to mess with your 
package's implementation). No need to add extra syntax here IMHO.



More information about the Python-list mailing list