[Python-ideas] PEP 484 (Type Hints) -- first draft round

Ed Kellett edk141 at gmail.com
Thu Jan 22 13:43:14 CET 2015


On Thu Jan 22 2015 at 12:38:17 Chris Angelico <rosuav at gmail.com> wrote:
>
> If you don't run the type checker, and the annotations will continue
> to do what they always have done. Seems easy enough.
>
> Supporting Python installations that already exist is as simple as
> either installing a backported typing.py, or not using a feature that
> didn't exist at that point. Same as the compatibility requirements of
> using enumerations in earlier versions of Python - you either grab the
> one off PyPI, or don't use 'em. I'm not seeing a problem here... have
> I missed something?
>

Put simply, code can't support existing Python installations and future
ones at the same time... unless it adds a dependency (is there a dummy
typing.py available on PyPI?) or just doesn't use annotations for
*anything*.

It's kind of like enumerations, except there aren't any proposals
threatening to punish you for not using them.

Ed Kellett
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20150122/c0ee6214/attachment.html>


More information about the Python-ideas mailing list