From: Pablo Galindo Salgado Date: Sat, 23 Jul 2022 18:35:44 +0000 (+0100) Subject: gh-93351: Add news entry and what's new entry for changes in gh-93351 (#95175) X-Git-Tag: v3.12.0a1~872 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9762572d0aa3569ba82eeceb708ddea9f12918fd;p=thirdparty%2FPython%2Fcpython.git gh-93351: Add news entry and what's new entry for changes in gh-93351 (#95175) --- diff --git a/Doc/whatsnew/3.11.rst b/Doc/whatsnew/3.11.rst index 8b2cb90fb155..0bdf3d1e4d96 100644 --- a/Doc/whatsnew/3.11.rst +++ b/Doc/whatsnew/3.11.rst @@ -1501,6 +1501,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 000000000000..97cf8055ac54 --- /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.