summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2019-06-12 00:55:28 (GMT)
committerVictor Stinner <vstinner@redhat.com>2019-06-12 00:55:28 (GMT)
commit3ba21070c6ecab83c23cea41a92b42fa651c7ea2 (patch)
tree6fd8a5f50a4c60c100e3a78614d80f830f7a3a73 /Doc/whatsnew
parent36eea7af48ca0a1c96b78c82bf95bbd29d2332da (diff)
downloadcpython-3ba21070c6ecab83c23cea41a92b42fa651c7ea2.zip
cpython-3ba21070c6ecab83c23cea41a92b42fa651c7ea2.tar.gz
cpython-3ba21070c6ecab83c23cea41a92b42fa651c7ea2.tar.bz2
bpo-35766: Change format for feature_version to (major, minor) (GH-13992) (GH-13993)
(A single int is still allowed, but undocumented.) https://bugs.python.org/issue35766 (cherry picked from commit 10b55c1643b512b3a2cae8ab89c53683a13ca43e) Co-authored-by: Guido van Rossum <guido@python.org>
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/3.8.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/whatsnew/3.8.rst b/Doc/whatsnew/3.8.rst
index 64e2e8e..eb2a005 100644
--- a/Doc/whatsnew/3.8.rst
+++ b/Doc/whatsnew/3.8.rst
@@ -352,9 +352,9 @@ The :func:`ast.parse` function has some new flags:
* ``mode='func_type'`` can be used to parse :pep:`484` "signature type
comments" (returned for function definition AST nodes);
-* ``feature_version=N`` allows specifying the minor version of an
- earlier Python 3 version. (For example, ``feature_version=4`` will
- treat ``async`` and ``await`` as non-reserved words.)
+* ``feature_version=(3, N)`` allows specifying an earlier Python 3
+ version. (For example, ``feature_version=(3, 4)`` will treat
+ ``async`` and ``await`` as non-reserved words.)
New function :func:`ast.get_source_segment` returns the source code
for a specific AST node.