Reply to Chris:

There are two things I want to say about constants :-
1) Global-Local Constants - The ALL_CAPS convention variables should become 
constant.
2) Class member constants - Constants should be used only for avoiding from 
being overridden. It should not be used as "We have a class. Use constants.". 
Sometimes if someone changes a critical value especially in Python a 
dynamically typed language it can have bad effects. Suppose we have a Windows 
and we go to registry editor and delete keys and set different values and then 
Windows won't boot up the next time. That's why class member constants is 
necessary.
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/RX4LMZ3BIALTDBBYJMQBFMQN6MMYIZJW/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to