From: Georg Brandl Date: Sun, 11 Jul 2010 09:42:10 +0000 (+0000) Subject: #7935: cross-reference to ast.literal_eval() from eval() docs. X-Git-Tag: v3.2a1~226 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=05bfcc590d1ddd7b2638075ce3db2d78d007e1d5;p=python #7935: cross-reference to ast.literal_eval() from eval() docs. --- diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst index 8089df15a2..8a413f4bc8 100644 --- a/Doc/library/functions.rst +++ b/Doc/library/functions.rst @@ -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]])