Skip to content

Commit 7d2dcc5

Browse files
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>
1 parent 5d4d831 commit 7d2dcc5

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

Doc/library/inspect.rst

+1-6
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,14 @@ The :func:`getmembers` function retrieves the members of an object such as a
3232
class or module. The functions whose names begin with "is" are mainly
3333
provided as convenient choices for the second argument to :func:`getmembers`.
3434
They also help you determine when you can expect to find the following special
35-
attributes:
35+
attributes (see :ref:`import-mod-attrs` for module attributes):
3636

3737
.. this function name is too big to fit in the ascii-art table below
3838
.. |coroutine-origin-link| replace:: :func:`sys.set_coroutine_origin_tracking_depth`
3939

4040
+-----------+-------------------+---------------------------+
4141
| Type | Attribute | Description |
4242
+===========+===================+===========================+
43-
| module | __doc__ | documentation string |
44-
+-----------+-------------------+---------------------------+
45-
| | __file__ | filename (missing for |
46-
| | | built-in modules) |
47-
+-----------+-------------------+---------------------------+
4843
| class | __doc__ | documentation string |
4944
+-----------+-------------------+---------------------------+
5045
| | __name__ | name with which this |

0 commit comments

Comments
 (0)