|
4 | 4 | [](https://gitter.im/python/typed_ast)
|
5 | 5 |
|
6 | 6 | `typed_ast` is a Python 3 package that provides a Python 2.7 and Python 3
|
7 |
| -parser similar to the standard `ast` library. Unlike `ast`, the parsers in |
| 7 | +parser similar to the standard `ast` library. Unlike `ast` up to Python 3.7, the parsers in |
8 | 8 | `typed_ast` include [PEP 484](https://www.python.org/dev/peps/pep-0484/) type
|
9 | 9 | comments and are independent of the version of Python under which they are run.
|
10 | 10 | The `typed_ast` parsers produce the standard Python AST (plus type comments),
|
11 | 11 | and are both fast and correct, as they are based on the CPython 2.7 and 3.7
|
12 |
| -parsers. `typed_ast` runs on CPython 3.6-3.10 on Linux, OS X and Windows. |
| 12 | +parsers. `typed_ast` runs on CPython 3.6-3.10 on Linux, OS X and Windows, |
| 13 | +although starting with Python 3.8, we recommend to use the native `ast` parser |
| 14 | +(see below). |
13 | 15 |
|
14 | 16 | ## Development Philosophy
|
15 | 17 |
|
@@ -41,9 +43,8 @@ and has limited support for parsing older versions of Python 3.
|
41 | 43 |
|
42 | 44 | ## Submodules
|
43 | 45 | ### ast3
|
44 |
| -The `ast3` parser produces the AST from a recent version of Python 3 |
45 |
| -(currently Python 3.6). When new versions of Python 3 are released, it will be |
46 |
| -updated to match any changes in their AST. (For rationale and technical |
| 46 | +The `ast3` parser produces the AST from a Python 3 code, up to Python 3.7. |
| 47 | +(For rationale and technical |
47 | 48 | details, see [here](update_process.md).) The AST it currently produces is described in
|
48 | 49 | [ast3/Parser/Python.asdl](ast3/Parser/Python.asdl). If you wish to limit
|
49 | 50 | parsing to older versions of Python 3, `ast3` can be configured to to give a
|
|
0 commit comments