Skip to content

Commit a92b87a

Browse files
authored
Update location of positional-only parameter indicator for eval and exec
Fix incorrect location of positional-only parameter indicator for `eval` and `exec`
1 parent d6dd64a commit a92b87a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/functions.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ are always available. They are listed here in alphabetical order.
575575

576576
.. _func-eval:
577577

578-
.. function:: eval(source, /, globals=None, locals=None)
578+
.. function:: eval(source, globals=None, locals=None, /)
579579

580580
:param source:
581581
A Python expression.
@@ -651,7 +651,7 @@ are always available. They are listed here in alphabetical order.
651651

652652
.. index:: pair: built-in function; exec
653653

654-
.. function:: exec(source, /, globals=None, locals=None, *, closure=None)
654+
.. function:: exec(source, globals=None, locals=None, /, *, closure=None)
655655

656656
.. warning::
657657

0 commit comments

Comments
 (0)