bpo:34431 Docs does not eval allows code object as argument

This commit is contained in:
furkanonder 2020-05-08 15:59:26 +03:00
parent 470aac4d8e
commit a725305707
1 changed files with 3 additions and 3 deletions

View File

@ -458,9 +458,9 @@ are always available. They are listed here in alphabetical order.
.. function:: eval(expression[, globals[, locals]])
The arguments are a string and optional globals and locals. If provided,
*globals* must be a dictionary. If provided, *locals* can be any mapping
object.
The arguments are a string or compiled code object, optionally along
with globals and locals. If provided; globals must be a dictionary,
locals can be any mapping object.
The *expression* argument is parsed and evaluated as a Python expression
(technically speaking, a condition list) using the *globals* and *locals*