declare a constant in Python?

djw donald.welch at hp.com
Thu Sep 9 18:21:03 CEST 2004


beliavsky at aol.com wrote:

> I wish one could declare a constant in Python, analogous to 'const int
> i=1;' in C++. Is there a way to get this effect?

Google is your friend:

http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&threadm=mailman.998158617.21783.python-list%40python.org&rnum=3&prev=/groups%3Fq%3Dpython%2Bconstant%26hl%3Den%26lr%3D%26ie%3DUTF-8%26selm%3Dmailman.998158617.21783.python-list%2540python.org%26rnum%3D3

Smaller URL:

http://tinyurl.com/6svro

-Don




More information about the Python-list mailing list