You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Docs for compile() and ast.parse() say they raise ValueError for source contains null bytes. However, since 3.12 (#97594), SyntaxError is raised instead:
Uh oh!
There was an error while loading. Please reload this page.
Documentation
Docs for
compile()
andast.parse()
say they raiseValueError
for source contains null bytes. However, since 3.12 (#97594),SyntaxError
is raised instead:cpython/Doc/library/functions.rst
Lines 337 to 338 in d1a1bca
And
cpython/Doc/library/ast.rst
Line 2158 in d1a1bca
Linked PRs
The text was updated successfully, but these errors were encountered: