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

Serhiy Storchaka storchaka at gmail.com
Tue Nov 21 02:38:40 EST 2017


21.11.17 08:33, Saeed Baig пише:
> Hey guys I am thinking of perhaps writing a PEP to introduce 
> user-defined constants to Python. Something along the lines of Swift’s 
> “let” syntax (e.g. “let pi = 3.14”).
> 
> Do you guys think it would be a good idea? Why or why not? Do you think 
> there’s a better way to do it?

To do what? What problem do you need to solve?



More information about the Python-ideas mailing list