summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-07-26 10:20:51 (GMT)
committerGitHub <noreply@github.com>2022-07-26 10:20:51 (GMT)
commit5e971e816d8ee1fd911ab38be261425669ec21ce (patch)
tree363cc1c2d33430a1af116137ea5668e33c6b4272
parent6fe7e0264f8cf3649520df11bbc1b5b4dc7a6f39 (diff)
downloadcpython-5e971e816d8ee1fd911ab38be261425669ec21ce.zip
cpython-5e971e816d8ee1fd911ab38be261425669ec21ce.tar.gz
cpython-5e971e816d8ee1fd911ab38be261425669ec21ce.tar.bz2
gh-93351: Add news entry and what's new entry for changes in gh-93351 (GH-95175) (GH-95177)
(cherry picked from commit 9762572d0aa3569ba82eeceb708ddea9f12918fd) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
-rw-r--r--Misc/NEWS.d/next/Core and Builtins/2022-07-23-19-16-25.gh-issue-93351.0Jyvu-.rst3
1 files changed, 3 insertions, 0 deletions
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.