Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.006 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:Python': 0.05; 'cpython': 0.05; 'annotations': 0.09; 'cc:addr:python-list': 0.10; 'python': 0.11; 'thu,': 0.15; '3.0,': 0.16; 'cc:name:python list': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'module).': 0.16; 'pypi.': 0.16; 'wrote:': 0.16; 'module,': 0.18; 'versions': 0.20; 'cc:2**0': 0.21; 'cc:addr:python.org': 0.21; 'am,': 0.23; 'code,': 0.23; '2015': 0.23; 'third-party': 0.23; 'header:In-Reply-To:1': 0.24; 'supported': 0.27; 'checking': 0.27; 'message-id:@mail.gmail.com': 0.28; 'actual': 0.29; "i'm": 0.29; 'dan': 0.29; 'measure': 0.29; 'pep': 0.29; '(which': 0.29; 'fri,': 0.31; 'code': 0.31; 'run': 0.32; 'older': 0.32; 'subject:?': 0.34; 'received:google.com': 0.34; 'being': 0.36; 'there': 0.36; 'heard': 0.36; 'quite': 0.37; 'subject:: ': 0.37; 'pm,': 0.39; 'sure': 0.40; 'some': 0.40; 'even': 0.61; 'capable': 0.65; 'believe': 0.67; 'checker': 0.84; 'chrisa': 0.84; 'to:none': 0.90; 'ware': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=L/CgV2zRT08Si78LjMzOktziqSyxy85RNVBzD91zdkc=; b=cMw/ODzYp3Ry5MgmjILRX7rl6k7ODDhhxHzgf252xJvQfv/yN6By36X3gF/I3Gd3WA 2vSnhffwTFs/4xatKU0c1CRsng6Fdl7VF4XxGs6AWL7uYrHzwGrlnyd93VP17cV77yVf oMZEUlSMaveNkDgI4ffHD+A038eCEZ+G7FwO+CeC8G4d0ZoC2BEtsGu5Vu5TXeNygdsW 7hBfHXWELuMBc2wQgXjDj2NEW5bLNwQNkqQ5ifS8W//9rzRua9Bb+jAGlyYYvCRbP+Zl RGYS1ulQnV8V9TvEwu4Dejme1Pb4AWELu54YSAOy+GsXvukS8U/DxsiP6sac7o169lg3 qW9g== MIME-Version: 1.0 X-Received: by 10.202.85.16 with SMTP id j16mr4216702oib.127.1432851990053; Thu, 28 May 2015 15:26:30 -0700 (PDT) In-Reply-To: References: Date: Fri, 29 May 2015 08:26:30 +1000 Subject: Re: Pep 484 Type Hint Checker - Python releases supported? From: Chris Angelico Cc: Python List Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 22 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1432851992 news.xs4all.nl 2895 [2001:888:2000:d::a6]:45806 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:91401 On Fri, May 29, 2015 at 8:06 AM, Zachary Ware wrote: > On Thu, May 28, 2015 at 4:58 PM, Dan Stromberg 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