[prev in list] [next in list] [prev in thread] [next in thread] 

List:       python-bugs-list
Subject:    [issue35975] Put back the ability to parse files where async/await aren't keywords
From:       Guido van Rossum <report () bugs ! python ! org>
Date:       2019-02-28 23:25:04
Message-ID: 1551396304.47.0.647357075169.issue35975 () roundup ! psfhosted ! org
[Download RAW message or body]


Guido van Rossum <guido@python.org> added the comment:

> Would not be simpler to just drop the support of Python versions <3.7 in new MyPy \
> versions?

Not really -- mypy has a lot of users who run it over (very) large code bases that \
can't easily be upgraded. Basically mypy has to support all Python versions that \
haven't reached their end of life yet. (And it's also important that mypy not be \
constrained to the same Python version as the target code.)

I suppose we could just stick with the existing typed_ast that supports 3.4 through \
3.7, but we actually have a use case for the end_lineno and end_col_offset fields \
that were just added to ast in 3.8, and in general we'd like to support any future \
grammar elements and ast features.

----------

_______________________________________
Python tracker <report@bugs.python.org>
<https://bugs.python.org/issue35975>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/python-bugs-list%40marc.info



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic