@@ -524,11 +524,11 @@ are always available. They are listed here in alphabetical order.
524524
525525.. _func-eval :
526526
527- .. function :: eval(expression , globals=None, locals=None)
527+ .. function :: eval(source, / , globals=None, locals=None)
528528
529- :param expression :
529+ :param source :
530530 A Python expression.
531- :type expression : :class: `str ` | :ref: `code object <code-objects >`
531+ :type source : :class: `str ` | :ref: `code object <code-objects >`
532532
533533 :param globals:
534534 The global namespace (default: ``None ``).
@@ -583,11 +583,15 @@ are always available. They are listed here in alphabetical order.
583583 Raises an :ref: `auditing event <auditing >` ``exec `` with the code object
584584 as the argument. Code compilation events may also be raised.
585585
586+ .. versionchanged :: 3.13
587+
588+ The *globals * and *locals * arguments can now be passed as keywords.
589+
586590.. index :: pair: built-in function; exec
587591
588- .. function :: exec(object, globals=None, locals=None, / , *, closure=None)
592+ .. function :: exec(source, /, globals=None, locals=None, *, closure=None)
589593
590- This function supports dynamic execution of Python code. *object * must be
594+ This function supports dynamic execution of Python code. *source * must be
591595 either a string or a code object. If it is a string, the string is parsed as
592596 a suite of Python statements which is then executed (unless a syntax error
593597 occurs). [# ]_ If it is a code object, it is simply executed. In all cases,
@@ -640,6 +644,10 @@ are always available. They are listed here in alphabetical order.
640644 .. versionchanged :: 3.11
641645 Added the *closure * parameter.
642646
647+ .. versionchanged :: 3.13
648+
649+ The *globals * and *locals * arguments can now be passed as keywords.
650+
643651
644652.. function :: filter(function, iterable)
645653
@@ -1733,8 +1741,9 @@ are always available. They are listed here in alphabetical order.
17331741 :ref: `function ` for details.
17341742
17351743 A static method can be called either on the class (such as ``C.f() ``) or on
1736- an instance (such as ``C().f() ``). Moreover, they can be called as regular
1737- functions (such as ``f() ``).
1744+ an instance (such as ``C().f() ``).
1745+ Moreover, the static method :term: `descriptor ` is also callable, so it can
1746+ be used in the class definition (such as ``f() ``).
17381747
17391748 Static methods in Python are similar to those found in Java or C++. Also, see
17401749 :func: `classmethod ` for a variant that is useful for creating alternate class
0 commit comments