]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.9] gh-95588: Drop the safety claim from `ast.literal_eval` docs. (GH-95919) (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 3 Dec 2024 16:08:42 +0000 (17:08 +0100)
committerGitHub <noreply@github.com>
Tue, 3 Dec 2024 16:08:42 +0000 (17:08 +0100)
commit08830c7042045f753fd227b4b365e6ae95c48063
tree82701d56c9b45a943bb3c257540329ac3211abec
parent6b8f44236a93376b773592b0889a49ec2090d9e6
[3.9] gh-95588: Drop the safety claim from `ast.literal_eval` docs. (GH-95919) (GH-126729)

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]