Skip to content

Commit

Permalink
gh-64019: Have attribute table in inspect docs link to module attri…
Browse files Browse the repository at this point in the history
…butes instead of listing them (GH-98116)

Co-authored-by: Michael Anckaert <michael.anckaert@sinax.be>
  • Loading branch information
slateny and MichaelAnckaert authored Nov 25, 2022
1 parent 5d4d831 commit 7d2dcc5
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions Doc/library/inspect.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,14 @@ 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`

+-----------+-------------------+---------------------------+
| Type | Attribute | Description |
+===========+===================+===========================+
| module | __doc__ | documentation string |
+-----------+-------------------+---------------------------+
| | __file__ | filename (missing for |
| | | built-in modules) |
+-----------+-------------------+---------------------------+
| class | __doc__ | documentation string |
+-----------+-------------------+---------------------------+
| | __name__ | name with which this |
Expand Down

0 comments on commit 7d2dcc5

Please sign in to comment.