Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #91401 > unrolled thread

Re: Pep 484 Type Hint Checker - Python releases supported?

Started byChris Angelico <rosuav@gmail.com>
First post2015-05-29 08:26 +1000
Last post2015-05-29 08:26 +1000
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Pep 484 Type Hint Checker - Python releases supported? Chris Angelico <rosuav@gmail.com> - 2015-05-29 08:26 +1000

#91401 — Re: Pep 484 Type Hint Checker - Python releases supported?

FromChris Angelico <rosuav@gmail.com>
Date2015-05-29 08:26 +1000
SubjectRe: Pep 484 Type Hint Checker - Python releases supported?
Message-ID<mailman.145.1432851992.5151.python-list@python.org>
On Fri, May 29, 2015 at 8:06 AM, Zachary Ware
<zachary.ware+pylist@gmail.com> wrote:
> On Thu, May 28, 2015 at 4:58 PM, Dan Stromberg <drsalists@gmail.com> wrote:
>> I believe I heard that the PEP 484 type checker is to go into CPython 3.5.
>>
>> Since type annotations have been there since 3.0, is it at all likely
>> that CPython versions < 3.5 will also be supported by this checker?
>
> All that's going into 3.5 is the typing.py module, which will also be
> distributed on PyPI.  The actual type checking is being left to
> third-party tools like MyPy (which was the basis for the typing.py
> module).
>
> I'm not sure if there is any plan to ever include an actual type
> checker with the base Python distribution.

And MyPy is quite capable of probing code that belongs on older
interpreters than 3.5 (obviously, since it already exists); it even
has some measure of support for probing Py2 code, although you do need
to have a Python 3.2+ to actually run MyPy on.

ChrisA

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web