[Python-ideas] Trial balloon: adding variable type
אלעזר
elazarg at gmail.com
Wed Aug 3 13:52:38 EDT 2016
>
> Date: Wed, 3 Aug 2016 09:11:42 -0700
> From: Guido van Rossum <guido at python.org>
... It would be much cleaner if you could declare the
> variable before the first `if`. But picking a good initializer is
> tricky, especially if you have a type that does not include None.
>
PEP-484 suggests ellipsis for this.
~Elazar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20160803/d6ae0f4d/attachment.html>
More information about the Python-ideas
mailing list