]> 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:24:55 +0000 (18:24 -0700)
committerGitHub <noreply@github.com>
Sun, 2 Oct 2022 01:24:55 +0000 (18:24 -0700)
commita4fbb949659b86b0925b20a9ef6bc2877f397252
tree0cd23d85e8ea2a1d02edc72b7e364c758f1c945a
parent748b2b780dd710139fc78dd795563e917b7e8a9e
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]