]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-95588: Drop the safety claim from `ast.literal_eval` docs. (GH-95919)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 2 Oct 2022 01:21:15 +0000 (18:21 -0700)
committerGitHub <noreply@github.com>
Sun, 2 Oct 2022 01:21:15 +0000 (18:21 -0700)
commit9189cd6b05a32b67981d2157947d745b2d0dac88
tree1757be15bc9d1f19a1f249fb68eb37f1ae377f5b
parent35a394c556d04048f24deda879b8547c598928dc
gh-95588: Drop the safety claim from `ast.literal_eval` docs. (GH-95919)

It was never really safe and this claim conflicts directly with the big warning in the docs about it being able to crash the interpreter.
(cherry picked from commit 8baef8ae367041a5cfefb40b19c7b87e9bcb56a2)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
Doc/library/ast.rst
Lib/ast.py
Misc/NEWS.d/next/Documentation/2022-08-12-01-12-52.gh-issue-95588.PA0FI7.rst [new file with mode: 0644]