summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2019-06-12 00:23:12 (GMT)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2019-06-12 00:23:12 (GMT)
commit10b55c1643b512b3a2cae8ab89c53683a13ca43e (patch)
tree3364d39f7940f01daf84ae0b319a10680059f38b /Doc/whatsnew
parent04856c2193eb72d72c46b57fa08095235d732a73 (diff)
downloadcpython-10b55c1643b512b3a2cae8ab89c53683a13ca43e.zip
cpython-10b55c1643b512b3a2cae8ab89c53683a13ca43e.tar.gz
cpython-10b55c1643b512b3a2cae8ab89c53683a13ca43e.tar.bz2
bpo-35766: Change format for feature_version to (major, minor) (GH-13992)
(A single int is still allowed, but undocumented.) https://bugs.python.org/issue35766
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 eb27613..2645864 100644
--- a/Doc/whatsnew/3.8.rst
+++ b/Doc/whatsnew/3.8.rst
@@ -378,9 +378,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.