mirror of
https://github.com/python/cpython.git
synced 2025-11-26 13:22:51 +00:00
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
This commit is contained in:
parent
dd1a20f324
commit
f522a6ddb6
2 changed files with 9 additions and 0 deletions
|
|
@ -70,6 +70,9 @@ attributes:
|
||||||
| | | method is bound, or |
|
| | | method is bound, or |
|
||||||
| | | ``None`` |
|
| | | ``None`` |
|
||||||
+-----------+-------------------+---------------------------+
|
+-----------+-------------------+---------------------------+
|
||||||
|
| | __module__ | name of module in which |
|
||||||
|
| | | this method was defined |
|
||||||
|
+-----------+-------------------+---------------------------+
|
||||||
| function | __doc__ | documentation string |
|
| function | __doc__ | documentation string |
|
||||||
+-----------+-------------------+---------------------------+
|
+-----------+-------------------+---------------------------+
|
||||||
| | __name__ | name with which this |
|
| | __name__ | name with which this |
|
||||||
|
|
@ -98,6 +101,9 @@ attributes:
|
||||||
| | | reserved for return |
|
| | | reserved for return |
|
||||||
| | | annotations. |
|
| | | annotations. |
|
||||||
+-----------+-------------------+---------------------------+
|
+-----------+-------------------+---------------------------+
|
||||||
|
| | __module__ | name of module in which |
|
||||||
|
| | | this function was defined |
|
||||||
|
+-----------+-------------------+---------------------------+
|
||||||
| traceback | tb_frame | frame object at this |
|
| traceback | tb_frame | frame object at this |
|
||||||
| | | level |
|
| | | level |
|
||||||
+-----------+-------------------+---------------------------+
|
+-----------+-------------------+---------------------------+
|
||||||
|
|
|
||||||
|
|
@ -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>`_
|
||||||
Loading…
Add table
Add a link
Reference in a new issue