mirror of
https://github.com/python/cpython.git
synced 2026-05-06 04:37:33 -04:00
[3.13] gh-100305: Deemphasize that ast.literal_eval is safe in eval documentation (GH-100326) (#148421)
(cherry picked from commit b3b0cef0c2)
Co-authored-by: Ram Vikram Singh <ramvikrams243@gmail.com>
Co-authored-by: Éric <merwok@netwok.org>
This commit is contained in:
committed by
GitHub
parent
1797dcda4e
commit
9c2db8144e
@@ -629,7 +629,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
|
||||
|
||||
Reference in New Issue
Block a user