]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-100546: Remove incorrect positional-only marker from eval (GH-100547)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 1 Jan 2023 01:06:31 +0000 (17:06 -0800)
committerGitHub <noreply@github.com>
Sun, 1 Jan 2023 01:06:31 +0000 (17:06 -0800)
All the arguments are positional-only.

The current status after GH-99476 seems to be to not use positional-only
markers in documentation, hence I've simply removed it.
(cherry picked from commit 71159a8e078bda0c9a39c6cd0980b7ba238dc582)

Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Doc/library/functions.rst

index c71ebd235cf3a4ad583482de85ae8b180377266c..e9e3177a99c79a46e0e46ba6396b9e6223f87a67 100644 (file)
@@ -512,7 +512,7 @@ are always available.  They are listed here in alphabetical order.
 
 .. _func-eval:
 
-.. function:: eval(expression, /, globals=None, locals=None)
+.. function:: eval(expression, globals=None, locals=None)
 
    The arguments are a string and optional globals and locals.  If provided,
    *globals* must be a dictionary.  If provided, *locals* can be any mapping