Skip to content

Commit

Permalink
bpo-38918: Add __module__ entry for function & method type in inspect…
Browse files Browse the repository at this point in the history
… docs table (GH-17408)

Adds` __module__ ` entries for function & method types in inspect docs table.

https://bugs.python.org/issue38918
(cherry picked from commit f522a6d)

Co-authored-by: Parth Sharma <parthsharma2@users.noreply.github.com>
  • Loading branch information
miss-islington and parthsharma2 committed Dec 20, 2019
1 parent eba61f3 commit 44683bb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Doc/library/inspect.rst
Expand Up @@ -70,6 +70,9 @@ attributes:
| | | method is bound, or |
| | | ``None`` |
+-----------+-------------------+---------------------------+
| | __module__ | name of module in which |
| | | this method was defined |
+-----------+-------------------+---------------------------+
| function | __doc__ | documentation string |
+-----------+-------------------+---------------------------+
| | __name__ | name with which this |
Expand Down Expand Up @@ -98,6 +101,9 @@ attributes:
| | | reserved for return |
| | | annotations. |
+-----------+-------------------+---------------------------+
| | __module__ | name of module in which |
| | | this function was defined |
+-----------+-------------------+---------------------------+
| traceback | tb_frame | frame object at this |
| | | level |
+-----------+-------------------+---------------------------+
Expand Down
@@ -0,0 +1,3 @@
Add an entry for ``__module__`` in the "function" & "method" sections of the
`inspect docs types and members table
<https://docs.python.org/3/library/inspect.html#types-and-members>`_

0 comments on commit 44683bb

Please sign in to comment.