[Python-ideas] Should Python have user-defined constants?

Bernardo Sulzbach mafagafogigante at gmail.com
Tue Nov 21 03:36:47 EST 2017


This could also be useful if one eventually wanted to implement constant 
optimizations in the interpreter as it would be possible to detect 
constants when they are declared without any code analysis.

This would be "constant" as in Java constants right? Referential 
constants, so that if an object were mutable you would still be able to 
change its internal state.

-- 
Bernardo Sulzbach
http://www.mafagafogigante.org/
mafagafogigante at gmail.com


More information about the Python-ideas mailing list