Skip to content

Commit 31a05c6

Browse files
committed
Fix phrasing and formatting
1 parent cbd3513 commit 31a05c6

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

Doc/library/inspect.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ attributes (see :ref:`import-mod-attrs` for module attributes):
446446

447447
.. note::
448448

449-
Accessing an instance method through the class (rather than an instance)
449+
Accessing an instance method through the instance (rather than the class)
450450
returns a bound method, not a :term:`function`, so :func:`isfunction`
451451
will return ``False`` in that case. See :ref:`instance-methods` in the
452452
language reference for details.
@@ -467,7 +467,6 @@ attributes (see :ref:`import-mod-attrs` for module attributes):
467467
Functions wrapped in :func:`functools.partialmethod` now return ``True``
468468
if the wrapped function is a Python generator function.
469469

470-
471470
.. function:: isgenerator(object)
472471

473472
Return ``True`` if the object is a generator.
@@ -564,7 +563,6 @@ attributes (see :ref:`import-mod-attrs` for module attributes):
564563
Functions wrapped in :func:`functools.partialmethod` now return ``True``
565564
if the wrapped function is a :term:`asynchronous generator` function.
566565

567-
568566
.. function:: isasyncgen(object)
569567

570568
Return ``True`` if the object is an :term:`asynchronous generator iterator`

0 commit comments

Comments
 (0)