Reply to Steven -
Sorry for creating confusions.
1. Leave debugging. As I said that's not a good argument for the existence of
constants.
2. "Constants doesn't mean we can't reassign the name to a different value."
was differently intended. I was trying to say that we should *treat* it like a
*literal*. I never said constant will be a type of variable. I was a little bit
unclear in that message.
3. Constant will be constant name binding. Value can be mutated (if mutable)
but the name cannot be reassigned.
4. constant pi = 3.14
# later
pi = 3.1415 # Error
_______________________________________________
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/N3OEMQVQ5EZSNW4ZG223RMPP4VATF3F6/
Code of Conduct: http://python.org/psf/codeofconduct/