diff options
| author | Parth Sharma <parthsharma2@users.noreply.github.com> | 2019-12-21 00:48:33 +0530 |
|---|---|---|
| committer | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-12-20 11:18:33 -0800 |
| commit | f522a6ddb67a238bab5673608111f74ec4e22205 (patch) | |
| tree | c15c7e5b9c933ad60c74d6e8291e5976c6976ad5 /Doc/library | |
| parent | dd1a20f324d88f4171aca480b7972d68cab212c5 (diff) | |
| download | cpython-git-f522a6ddb67a238bab5673608111f74ec4e22205.tar.gz | |
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
Diffstat (limited to 'Doc/library')
| -rw-r--r-- | Doc/library/inspect.rst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/library/inspect.rst b/Doc/library/inspect.rst index 10f347dd42..bab2c41e4e 100644 --- a/Doc/library/inspect.rst +++ b/Doc/library/inspect.rst @@ -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 | @@ -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 | +-----------+-------------------+---------------------------+ |
