From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Wed, 11 Sep 2019 10:53:16 +0000 (-0700) Subject: bpo-25810: Clarify eval() docs, it does not keywords (GH-15173) X-Git-Tag: v3.8.0rc1~201 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4e914ab29f6d48a9fd045ea6a25dbf9e2fb603f9;p=python bpo-25810: Clarify eval() docs, it does not keywords (GH-15173) (cherry picked from commit 7a0023e8d17566eb32c836b65c33663303a2224f) Co-authored-by: smokephil --- diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst index 9ea7b7b55a..2f3ef4f7fc 100644 --- a/Doc/library/functions.rst +++ b/Doc/library/functions.rst @@ -454,7 +454,7 @@ are always available. They are listed here in alphabetical order. n += 1 -.. function:: eval(expression, globals=None, locals=None) +.. 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