Skip to content

Commit 4f33f9e

Browse files
Minor fixes.
1 parent 8516800 commit 4f33f9e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Doc/library/inspect.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ attributes (see :ref:`import-mod-attrs` for module attributes):
210210
+-----------------+-------------------+---------------------------+
211211
| | co_kwonlyargcount | number of keyword-only |
212212
| | | parameters (not including |
213-
| | | var-positional parameter) |
213+
| | | var-keyword parameter) |
214214
+-----------------+-------------------+---------------------------+
215215
| | co_name | name with which this code |
216216
| | | object was defined |

Doc/library/stdtypes.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1339,8 +1339,8 @@ application).
13391339
fail, the entire sort operation will fail (and the list will likely be left
13401340
in a partially modified state).
13411341

1342-
:meth:`sort` accepts two arguments that can only be passed by keyword
1343-
(:ref:`keyword-only parameters <keyword-only_parameter>`):
1342+
:meth:`sort` accepts two arguments that can
1343+
:ref:`only be passed by keyword <keyword-only_parameter>`:
13441344

13451345
*key* specifies a function of one argument that is used to extract a
13461346
comparison key from each list element (for example, ``key=str.lower``).

Doc/whatsnew/2.5.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1358,7 +1358,7 @@ complete list of changes, or look through the SVN logs for all the details.
13581358
:func:`gc.collect` function now takes an optional *generation* argument of 0, 1,
13591359
or 2 to specify which generation to collect. (Contributed by Barry Warsaw.)
13601360

1361-
* The :func:`nsmallest` and :func:`nlargest` functions in the :mod:`heapq`
1361+
* The :func:`~heapq.nsmallest` and :func:`~heapq.nlargest` functions in the :mod:`heapq`
13621362
module now support a ``key`` keyword argument similar to the one provided by
13631363
the :func:`min`/:func:`max` functions and the :meth:`sort` methods. For
13641364
example::

0 commit comments

Comments
 (0)