]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-64019: Have attribute table in `inspect` docs link to module attributes instead...
authorStanley <46876382+slateny@users.noreply.github.com>
Fri, 25 Nov 2022 19:10:22 +0000 (11:10 -0800)
committerGitHub <noreply@github.com>
Fri, 25 Nov 2022 19:10:22 +0000 (11:10 -0800)
Co-authored-by: Michael Anckaert <michael.anckaert@sinax.be>
Doc/library/inspect.rst

index 44f1ae04c9e39eb68b7d8d9e98da7afee5fe4a42..9cb7a6f94e49cd207372e0e5b971993247010760 100644 (file)
@@ -32,7 +32,7 @@ The :func:`getmembers` function retrieves the members of an object such as a
 class or module. The functions whose names begin with "is" are mainly
 provided as convenient choices for the second argument to :func:`getmembers`.
 They also help you determine when you can expect to find the following special
-attributes:
+attributes (see :ref:`import-mod-attrs` for module attributes):
 
 .. this function name is too big to fit in the ascii-art table below
 .. |coroutine-origin-link| replace:: :func:`sys.set_coroutine_origin_tracking_depth`
@@ -40,11 +40,6 @@ attributes:
 +-----------+-------------------+---------------------------+
 | Type      | Attribute         | Description               |
 +===========+===================+===========================+
-| module    | __doc__           | documentation string      |
-+-----------+-------------------+---------------------------+
-|           | __file__          | filename (missing for     |
-|           |                   | built-in modules)         |
-+-----------+-------------------+---------------------------+
 | class     | __doc__           | documentation string      |
 +-----------+-------------------+---------------------------+
 |           | __name__          | name with which this      |