From: smokephil Date: Wed, 11 Sep 2019 10:30:04 +0000 (+0200) Subject: bpo-25810: Clarify eval() docs, it does not keywords (GH-15173) X-Git-Tag: v3.9.0a1~570 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7a0023e8d17566eb32c836b65c33663303a2224f;p=thirdparty%2FPython%2Fcpython.git bpo-25810: Clarify eval() docs, it does not keywords (GH-15173) --- diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst index 2e385a2a37d5..ea2777f75367 100644 --- a/Doc/library/functions.rst +++ b/Doc/library/functions.rst @@ -456,7 +456,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