PEP 526 - var annotations and the spirit of python

Abdur-Rahmaan Janhangeer arj.python at gmail.com
Sun Jul 1 13:55:21 EDT 2018


i meant that x: int = 3 is dangerously close to int x = 3,

in the long run, you'll come across people who come from other languages
wanting to java/c style their code and end up sprinkling a lot of these,
it'll be a sad day for me

return type in function definition also managed to return via ->

Abdur-Rahmaan Janhangeer
https://github.com/Abdur-rahmaanJ
Mauritius

PEP 526 says that the annotation would be:
>
> x: int = 3
>
> It also says """It should also be emphasized that Python will remain a
> dynamically typed language, and the authors have no desire to ever make
> type hints mandatory, even by convention.""
> --
> https://mail.python.org/mailman/listinfo/python-list
>


More information about the Python-list mailing list