]> granicus.if.org Git - python/commitdiff
#7935: cross-reference to ast.literal_eval() from eval() docs.
authorGeorg Brandl <georg@python.org>
Sun, 11 Jul 2010 09:42:10 +0000 (09:42 +0000)
committerGeorg Brandl <georg@python.org>
Sun, 11 Jul 2010 09:42:10 +0000 (09:42 +0000)
Doc/library/functions.rst

index 8089df15a23c6112c69858dd32026af01f33601a..8a413f4bc81a3dc853b6f783aed91d7ea78dc3d2 100644 (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]])