diff options
| author | Guido van Rossum <guido@python.org> | 2019-02-27 16:49:30 -0800 |
|---|---|---|
| committer | Guido van Rossum <guido@python.org> | 2019-03-05 11:36:11 -0800 |
| commit | 1851eafa63415e8dd19dc2cf78d0cac84f2fd55e (patch) | |
| tree | b9c83f67edc5c05452b0af7b4649ef93c4f4adb6 | |
| parent | 713d05089de6554928306378ac95a506472a4a51 (diff) | |
| download | cpython-git-1851eafa63415e8dd19dc2cf78d0cac84f2fd55e.tar.gz | |
Add blurb
| -rw-r--r-- | Misc/NEWS.d/next/Core and Builtins/2019-02-27-16-49-08.bpo-35975.IescLY.rst | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2019-02-27-16-49-08.bpo-35975.IescLY.rst b/Misc/NEWS.d/next/Core and Builtins/2019-02-27-16-49-08.bpo-35975.IescLY.rst new file mode 100644 index 0000000000..3bbfc74469 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/2019-02-27-16-49-08.bpo-35975.IescLY.rst @@ -0,0 +1,7 @@ +Add a ``feature_version`` flag to ``ast.parse()`` (documented) and +``compile()`` (hidden) that allows tweaking the parser to support older +versions of the grammar. In particular, if ``feature_version`` is 5 or 6, +the hacks for the ``async`` and ``await`` keyword from PEP 492 are +reinstated. (For 7 or higher, these are unconditionally treated as keywords, +but they are still special tokens rather than ``NAME`` tokens that the +parser driver recognizes.) |
