It's still a Python feature even if it's not a language feature, it's well defined by PEP and any type checker wanting to implement type hinting to spec must include it.
Further type hinting allows developers who want to use a Constant / Final feature get the benefit already from type hinting, whereas developers who want to stick to the pythonic philosophy of "we're all consenting adults here" can still mess with the code but know it's not supported at all. As far as I can see it's the best of both worlds. Could you please list in your proposal the real world benefits vs. the existing type hinting feature? On Tue, May 25, 2021 at 11:02 AM Ethan Furman <et...@stoneleaf.us> wrote: > On 5/25/21 5:23 AM, Chris Angelico wrote: > > On Tue, May 25, 2021 at 9:55 PM Shreyan Avigyan wrote: > > >> The proposed syntax is as follows, > >> > >> constant x = 10 > >> constant y = ["List"] > >> constant z: str = "Hi" > > > > https://docs.python.org/3/library/typing.html#typing.Final > > > > Already exists :) > > Optional typing != core Python. > > -- > ~Ethan~ > _______________________________________________ > Python-ideas mailing list -- python-ideas@python.org > To unsubscribe send an email to python-ideas-le...@python.org > https://mail.python.org/mailman3/lists/python-ideas.python.org/ > Message archived at > https://mail.python.org/archives/list/python-ideas@python.org/message/NZUWNBFWI5ESOW6CVMQA7CZTRNFVJJLA/ > Code of Conduct: http://python.org/psf/codeofconduct/ >
_______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/MM6WSMJFFDXEVNUFQ6DSAM5HGLOJ3MYR/ Code of Conduct: http://python.org/psf/codeofconduct/