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

This commit is contained in:
Georg Brandl 2010-07-11 09:42:10 +00:00
parent 492f3fc272
commit 05bfcc590d
1 changed files with 3 additions and 0 deletions

View File

@ -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
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]])