Skip to content

Commit 8516800

Browse files
serhiy-storchakaJelleZijlstraencukou
authored
Apply suggestions from code review
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: Petr Viktorin <encukou@gmail.com>
1 parent 7246fcf commit 8516800

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Doc/c-api/arg.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ API Functions
506506
507507
.. c:function:: int PyArg_Parse(PyObject *args, const char *format, ...)
508508
509-
Parse the argument of a function that takes a single positional parameter
509+
Parse the argument of a function that takes a single positional argument
510510
into a local variable. Returns true on success; on failure, it returns
511511
false and raises the appropriate exception.
512512

Doc/library/ast.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1938,8 +1938,8 @@ Function and class definitions
19381938
* ``kw_defaults`` is a list of default values for keyword-only parameters. If
19391939
one is ``None``, the corresponding argument is required.
19401940
* ``defaults`` is a list of default values for positional-only and
1941-
keyword-or-positional parameter.
1942-
If there are fewer defaults, they correspond to the last n
1941+
keyword-or-positional parameters.
1942+
If there are fewer defaults, they correspond to the last *n*
19431943
parameters.
19441944

19451945

Doc/library/shutil.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,7 @@ provided. They rely on the :mod:`zipfile` and :mod:`tarfile` modules.
712712
registered for that extension. In case none is found,
713713
a :exc:`ValueError` is raised.
714714

715-
The keyword *filter* argument is passed to the underlying unpacking
715+
The keyword argument *filter* is passed to the underlying unpacking
716716
function. For zip files, *filter* is not accepted.
717717
For tar files, it is recommended to use ``'data'`` (default since Python
718718
3.14), unless using features specific to tar and UNIX-like filesystems.

0 commit comments

Comments
 (0)