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

Guido van Rossum gvanrossum at gmail.com
Thu Aug 4 11:12:15 EDT 2016


For pragmatic reasons I propose not to evaluate locally scoped type
annotations at all. Basically these would slow you down too much otherwise.

--Guido (mobile)

On Aug 3, 2016 11:38 PM, "Greg Ewing" <greg.ewing at canterbury.ac.nz> wrote:

> Concerning type annotations on local variables of a function:
>
> 1) Would they be stored anywhere? If so, where?
>
> 2) Would they be evaluated once, or every time the
> function is called?
>
> 3) If they're evaluated once, when and in what scope?
>
> --
> Greg
>
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20160804/54176dc3/attachment.html>


More information about the Python-ideas mailing list