diff options
author | Stanley <46876382+slateny@users.noreply.github.com> | 2022-11-25 19:10:22 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-25 19:10:22 (GMT) |
commit | 7d2dcc53d09fe903329926bf7bbfe460b1465dab (patch) | |
tree | 76d30db35678fa05c096d24da885bff59928f021 /Doc/library | |
parent | 5d4d83130c1538586e559a64e3a2341794da92d9 (diff) | |
download | cpython-7d2dcc53d09fe903329926bf7bbfe460b1465dab.zip cpython-7d2dcc53d09fe903329926bf7bbfe460b1465dab.tar.gz cpython-7d2dcc53d09fe903329926bf7bbfe460b1465dab.tar.bz2 |
gh-64019: Have attribute table in `inspect` docs link to module attributes instead of listing them (GH-98116)
Co-authored-by: Michael Anckaert <michael.anckaert@sinax.be>
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/inspect.rst | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/Doc/library/inspect.rst b/Doc/library/inspect.rst index 44f1ae0..9cb7a6f 100644 --- a/Doc/library/inspect.rst +++ b/Doc/library/inspect.rst @@ -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 | |