Skip to content

Commit 35c568d

Browse files
committed
gh-93351: Add news entry and what's new entry for changes in gh-93351
1 parent d291a82 commit 35c568d

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
@@ -1501,6 +1501,10 @@ Changes in the Python API
15011501
is larger than the population size, a :exc:`ValueError` is raised.
15021502
(Contributed by Raymond Hettinger in :issue:`40465`.)
15031503

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

15051509
Build Changes
15061510
=============
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)