mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
[3.11] gh-93351: Add news entry and what's new entry for changes in gh-93351 (GH-95175) (#95178)
(cherry picked from commit 9762572d0a
)
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
This commit is contained in:
parent
f15be2fad1
commit
e8edbda897
2 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
=============
|
||||
|
|
|
@ -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.
|
Loading…
Add table
Add a link
Reference in a new issue