Should constants be introduced to Python?

Marcin Tustin marcin.tustin at gmail.com
Fri Nov 17 10:14:51 EST 2017


I'm against this because Python's strength is its simplicity. This doesn't
actually simplify anything, but it does add a new language feature to
understand.

All the benefits of this can be achieved with linting.

On Thu, Nov 16, 2017 at 1:16 AM, Saeed Baig <saeedbaig616 at icloud.com> wrote:

> 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.
> --
> https://mail.python.org/mailman/listinfo/python-list
>



-- 
Marcin Tustin
Tel: +1 917 553 3974



More information about the Python-list mailing list