diff -r bffa0b8a16e8 Doc/library/functions.rst --- a/Doc/library/functions.rst Sun Jul 27 04:07:18 2014 -0400 +++ b/Doc/library/functions.rst Sun Jul 27 12:48:05 2014 +0300 @@ -400,13 +400,14 @@ The *expression* argument is parsed and evaluated as a Python expression (technically speaking, a condition list) using the *globals* and *locals* dictionaries as global and local namespace. If the *globals* dictionary is - present and lacks '__builtins__', the current globals are copied into *globals* - before *expression* is parsed. This means that *expression* normally has full - access to the standard :mod:`__builtin__` module and restricted environments are - propagated. If the *locals* dictionary is omitted it defaults to the *globals* - dictionary. If both dictionaries are omitted, the expression is executed in the - environment where :func:`eval` is called. The return value is the result of - the evaluated expression. Syntax errors are reported as exceptions. Example: + present and lacks '__builtins__', the current mapping of '__builtins__' is + copied into *globals* before *expression* is parsed. This means that + *expression* normally has full access to the standard :mod:`__builtin__` module + and restricted environments are propagated. If the *locals* dictionary is + omitted it defaults to the *globals* dictionary. If both dictionaries are + omitted, the expression is executed in the environment where :func:`eval` is + called. The return value is the result of the evaluated expression. Syntax + errors are reported as exceptions. Example: >>> x = 1 >>> print eval('x+1')