]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-25810: Clarify eval() docs, it does not keywords (GH-15173)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 11 Sep 2019 10:55:29 +0000 (03:55 -0700)
committerGitHub <noreply@github.com>
Wed, 11 Sep 2019 10:55:29 +0000 (03:55 -0700)
(cherry picked from commit 7a0023e8d17566eb32c836b65c33663303a2224f)

Co-authored-by: smokephil <smokephil@gmail.com>
Doc/library/functions.rst

index 11147525d7e829d7a1d591adf77f88d4b4b47ad4..313dbffdcde93ab3daeacc57b25118c759ac06d5 100644 (file)
@@ -426,7 +426,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