Should constants be introduced to Python?

Saeed Baig saeedbaig616 at icloud.com
Thu Nov 16 01:16:11 EST 2017


Hey guys I am thinking of perhaps writing a PEP to introduce constants to Python. Something along the lines of Swift’s “let” syntax (e.g. “let pi = 3.14”).

Since I’m sort of new to this, I just wanted to ask:
- Has a PEP for this already been written? If so, where can I find the link/info to it?
- 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? I’d like to know what others think about this idea before making any formal submission.


More information about the Python-list mailing list