summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorPablo Galindo Salgado <Pablogsal@gmail.com>2022-09-27 22:23:42 (GMT)
committerGitHub <noreply@github.com>2022-09-27 22:23:42 (GMT)
commitaab01e3524d966dca6e72c718a2c71403a14e47c (patch)
tree69e30e5354e49bc104177ab61ee8b39ccd24bf22 /Doc
parentdd53b79de0ea98af6a11481217a961daef4e9774 (diff)
downloadcpython-aab01e3524d966dca6e72c718a2c71403a14e47c.zip
cpython-aab01e3524d966dca6e72c718a2c71403a14e47c.tar.gz
cpython-aab01e3524d966dca6e72c718a2c71403a14e47c.tar.bz2
gh-96670: Raise SyntaxError when parsing NULL bytes (#97594)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/whatsnew/3.12.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.12.rst b/Doc/whatsnew/3.12.rst
index 3fbc7b6..2a31160 100644
--- a/Doc/whatsnew/3.12.rst
+++ b/Doc/whatsnew/3.12.rst
@@ -86,6 +86,12 @@ Other Language Changes
* :class:`memoryview` now supports the half-float type (the "e" format code).
(Contributed by Dong-hee Na and Antoine Pitrou in :gh:`90751`.)
+* The parser now raises :exc:`SyntaxError` when parsing source code containing
+ null bytes. (Contributed by Pablo Galindo in :gh:`96670`.)
+
+* :func:`ast.parse` now raises :exc:`SyntaxError` instead of :exc:`ValueError`
+ when parsing source code containing null bytes. (Contributed by Pablo Galindo
+ in :gh:`96670`.)
New Modules
===========