Kaydet (Commit) 05bfcc59 authored tarafından Georg Brandl's avatar Georg Brandl

#7935: cross-reference to ast.literal_eval() from eval() docs.

üst 492f3fc2
...@@ -335,6 +335,9 @@ are always available. They are listed here in alphabetical order. ...@@ -335,6 +335,9 @@ are always available. They are listed here in alphabetical order.
returns the current global and local dictionary, respectively, which may be returns the current global and local dictionary, respectively, which may be
useful to pass around for use by :func:`eval` or :func:`exec`. useful to pass around for use by :func:`eval` or :func:`exec`.
See :func:`ast.literal_eval` for a function that can safely evaluate strings
with expressions containing only literals.
.. function:: exec(object[, globals[, locals]]) .. function:: exec(object[, globals[, locals]])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment