Skip to content

Commit f522a6d

Browse files
parthsharma2miss-islington
authored andcommitted
bpo-38918: Add __module__ entry for function & method type in inspect docs table (GH-17408)
Adds` __module__ ` entries for function & method types in inspect docs table. https://bugs.python.org/issue38918
1 parent dd1a20f commit f522a6d

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

Doc/library/inspect.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ attributes:
7070
| | | method is bound, or |
7171
| | | ``None`` |
7272
+-----------+-------------------+---------------------------+
73+
| | __module__ | name of module in which |
74+
| | | this method was defined |
75+
+-----------+-------------------+---------------------------+
7376
| function | __doc__ | documentation string |
7477
+-----------+-------------------+---------------------------+
7578
| | __name__ | name with which this |
@@ -98,6 +101,9 @@ attributes:
98101
| | | reserved for return |
99102
| | | annotations. |
100103
+-----------+-------------------+---------------------------+
104+
| | __module__ | name of module in which |
105+
| | | this function was defined |
106+
+-----------+-------------------+---------------------------+
101107
| traceback | tb_frame | frame object at this |
102108
| | | level |
103109
+-----------+-------------------+---------------------------+
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Add an entry for ``__module__`` in the "function" & "method" sections of the
2+
`inspect docs types and members table
3+
<https://docs.python.org/3/library/inspect.html#types-and-members>`_

0 commit comments

Comments
 (0)