From: Ram Vikram Singh Date: Sun, 12 Apr 2026 03:07:42 +0000 (+0530) Subject: gh-100305: Deemphasize that `ast.literal_eval` is safe in `eval` documentation (... X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b3b0cef0c2aacdc616fa48674552ab1e34553835;p=thirdparty%2FPython%2Fcpython.git gh-100305: Deemphasize that `ast.literal_eval` is safe in `eval` documentation (#100326) Co-authored-by: Éric --- diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst index e8c4605d0578..119141d2e6da 100644 --- a/Doc/library/functions.rst +++ b/Doc/library/functions.rst @@ -644,7 +644,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