[Python-ideas] Proposal: Use mypy syntax for function annotations

Juancarlo Añez apalala at gmail.com
Thu Aug 14 03:43:54 CEST 2014


On Wed, Aug 13, 2014 at 6:41 PM, Guido van Rossum <guido at python.org> wrote:

> Actually, mypy already has a solution. There's a codec (
> https://github.com/JukkaL/mypy/tree/master/mypy/codec) that you can use
> which transforms Python-2-with-annotations into vanilla Python 2. It's not
> an ideal solution, but it can work in cases where you absolutely have to
> have state of the art Python 3.5 type checking *and* backwards
> compatibility with Python 2.
>

It can't be a solution because it's a hack...

Cheers,

-- 
Juancarlo *Añez*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20140813/c5b134c1/attachment.html>


More information about the Python-ideas mailing list