From e9277487e58d5328531f8e958e3da6477325ada1 Mon Sep 17 00:00:00 2001 From: Ram Vikram Singh Date: Sun, 12 Apr 2026 08:37:42 +0530 Subject: [PATCH] gh-100305: Deemphasize that `ast.literal_eval` is safe in `eval` documentation (GH-100326) (cherry picked from commit b3b0cef0c2aacdc616fa48674552ab1e34553835) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Ram Vikram Singh Co-authored-by: Éric --- Doc/library/functions.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst index 96b88b38039fa3..4b849770c1936a 100644 --- a/Doc/library/functions.rst +++ b/Doc/library/functions.rst @@ -635,7 +635,7 @@ are always available. They are listed here in alphabetical order. If the given source is a string, then leading and trailing spaces and tabs are stripped. - See :func:`ast.literal_eval` for a function that can safely evaluate strings + See :func:`ast.literal_eval` for a function to evaluate strings with expressions containing only literals. .. audit-event:: exec code_object eval