diff options
author | Pablo Galindo Salgado <Pablogsal@gmail.com> | 2022-07-23 18:44:44 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-23 18:44:44 (GMT) |
commit | e8edbda8972e83c86db1cb5b51ba9002c4923b6e (patch) | |
tree | d4da45df8b48cc71720706883cb36e6fda89d5a2 | |
parent | f15be2fad115ebe1cafc6fa372cc517ba7065ecf (diff) | |
download | cpython-e8edbda8972e83c86db1cb5b51ba9002c4923b6e.zip cpython-e8edbda8972e83c86db1cb5b51ba9002c4923b6e.tar.gz cpython-e8edbda8972e83c86db1cb5b51ba9002c4923b6e.tar.bz2 |
[3.11] gh-93351: Add news entry and what's new entry for changes in gh-93351 (GH-95175) (#95178)
(cherry picked from commit 9762572d0aa3569ba82eeceb708ddea9f12918fd)
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
-rw-r--r-- | Doc/whatsnew/3.11.rst | 4 | ||||
-rw-r--r-- | Misc/NEWS.d/next/Core and Builtins/2022-07-23-19-16-25.gh-issue-93351.0Jyvu-.rst | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.11.rst b/Doc/whatsnew/3.11.rst index b26e004..87796d5 100644 --- a/Doc/whatsnew/3.11.rst +++ b/Doc/whatsnew/3.11.rst @@ -1506,6 +1506,10 @@ Changes in the Python API is larger than the population size, a :exc:`ValueError` is raised. (Contributed by Raymond Hettinger in :issue:`40465`.) +* :class:`ast.AST` node positions are now validated when provided to + :func:`compile` and other related functions. If invalid positions are detected, + a :exc:`ValueError` will be raised. (Contributed by Pablo Galindo in :gh:`93351`) + Build Changes ============= diff --git a/Misc/NEWS.d/next/Core and Builtins/2022-07-23-19-16-25.gh-issue-93351.0Jyvu-.rst b/Misc/NEWS.d/next/Core and Builtins/2022-07-23-19-16-25.gh-issue-93351.0Jyvu-.rst new file mode 100644 index 0000000..97cf805 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/2022-07-23-19-16-25.gh-issue-93351.0Jyvu-.rst @@ -0,0 +1,3 @@ +:class:`ast.AST` node positions are now validated when provided to +:func:`compile` and other related functions. If invalid positions are +detected, a :exc:`ValueError` will be raised. |