[Python-ideas] Trial balloon: adding variable type declarations in support of PEP 484

Sven R. Kunze srkunze at mail.de
Wed Aug 3 09:36:10 EDT 2016


On 03.08.2016 03:15, Gregory P. Smith wrote:
>
>
> On Mon, Aug 1, 2016 at 10:14 PM Guido van Rossum <guido at python.org 
> <mailto:guido at python.org>> wrote:
>
>     What makes you respond so vehemently to `a: float`?
>
>
> First reaction.  It doesn't actually seem too bad now. It is already 
> legal to just say `a` as a statement so this isn't much different.
>
> def f():
>   a
>
> is already legal.  So `a: List[float]` would at least be meaningful 
> rather than a meaningless statement that any linter should question. :)
>

That's legal? To me that seems like a syntax/name error.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20160803/a9eabf4b/attachment.html>


More information about the Python-ideas mailing list