Skip to content

Commit e97232a

Browse files
Apply suggestions from code review
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
1 parent 4f33f9e commit e97232a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Doc/c-api/veryhigh.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ the same library that the Python runtime is using.
267267
evaluation. This environment consists of a dictionary of global variables,
268268
a mapping object of local variables, arrays of arguments, keywords and
269269
defaults, a dictionary of default values for :ref:`keyword-only
270-
<keyword-only_parameter>` parameters and a closure tuple of cells.
270+
<keyword-only_parameter>` parameters, and a closure tuple of cells.
271271
272272
273273
.. c:function:: PyObject* PyEval_EvalFrame(PyFrameObject *f)

Doc/library/ast.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1930,16 +1930,16 @@ Function and class definitions
19301930

19311931
.. class:: arguments(posonlyargs, args, vararg, kwonlyargs, kw_defaults, kwarg, defaults)
19321932

1933-
The parameters for a function.
1933+
The parameters for the defined function.
19341934

19351935
* ``posonlyargs``, ``args`` and ``kwonlyargs`` are lists of :class:`arg` nodes.
19361936
* ``vararg`` and ``kwarg`` are single :class:`arg` nodes, referring to the
19371937
``*args, **kwargs`` parameters.
1938-
* ``kw_defaults`` is a list of default values for keyword-only parameters. If
1938+
* ``kw_defaults`` is the list of default values for keyword-only parameters. If
19391939
one is ``None``, the corresponding argument is required.
1940-
* ``defaults`` is a list of default values for positional-only and
1940+
* ``defaults`` is the list of default values for positional-only and
19411941
keyword-or-positional parameters.
1942-
If there are fewer defaults, they correspond to the last *n*
1942+
If there are fewer defaults than there are such parameters, the defaults correspond to the last *n*
19431943
parameters.
19441944

19451945

0 commit comments

Comments
 (0)