Skip to content

Commit e8edbda

Browse files
authored
[3.11] gh-93351: Add news entry and what's new entry for changes in gh-93351 (GH-95175) (#95178)
(cherry picked from commit 9762572) Co-authored-by: Pablo Galindo Salgado <[email protected]>
1 parent f15be2f commit e8edbda

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

Doc/whatsnew/3.11.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1506,6 +1506,10 @@ Changes in the Python API
15061506
is larger than the population size, a :exc:`ValueError` is raised.
15071507
(Contributed by Raymond Hettinger in :issue:`40465`.)
15081508

1509+
* :class:`ast.AST` node positions are now validated when provided to
1510+
:func:`compile` and other related functions. If invalid positions are detected,
1511+
a :exc:`ValueError` will be raised. (Contributed by Pablo Galindo in :gh:`93351`)
1512+
15091513

15101514
Build Changes
15111515
=============
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
:class:`ast.AST` node positions are now validated when provided to
2+
:func:`compile` and other related functions. If invalid positions are
3+
detected, a :exc:`ValueError` will be raised.

0 commit comments

Comments
 (0)