diff options
author | Kirill Podoprigora <kirill.bast9@mail.ru> | 2024-08-06 12:47:31 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-06 12:47:31 (GMT) |
commit | 8ce70d6c697c8179e007169ba2ec5d3a0dc77362 (patch) | |
tree | 76ae99cde1fdee280227be7af40e905a2412ab50 /Doc/library | |
parent | 0b433aa9df6b5bb84e77ff97e59b7bcd04f2199a (diff) | |
download | cpython-8ce70d6c697c8179e007169ba2ec5d3a0dc77362.zip cpython-8ce70d6c697c8179e007169ba2ec5d3a0dc77362.tar.gz cpython-8ce70d6c697c8179e007169ba2ec5d3a0dc77362.tar.bz2 |
gh-122058: `Lib/inspect`: Update docstrings for `isfunction`, `isgenerator`, `isframe`, `iscode`. (#122059)
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/inspect.rst | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Doc/library/inspect.rst b/Doc/library/inspect.rst index 361f405..4107907 100644 --- a/Doc/library/inspect.rst +++ b/Doc/library/inspect.rst @@ -153,6 +153,19 @@ attributes (see :ref:`import-mod-attrs` for module attributes): | | f_trace | tracing function for this | | | | frame, or ``None`` | +-----------------+-------------------+---------------------------+ +| | f_trace_lines | indicate whether a | +| | | tracing event is | +| | | triggered for each source | +| | | source line | ++-----------------+-------------------+---------------------------+ +| | f_trace_opcodes | indicate whether | +| | | per-opcode events are | +| | | requested | ++-----------------+-------------------+---------------------------+ +| | clear() | used to clear all | +| | | references to local | +| | | variables | ++-----------------+-------------------+---------------------------+ | code | co_argcount | number of arguments (not | | | | including keyword only | | | | arguments, \* or \*\* | @@ -214,6 +227,18 @@ attributes (see :ref:`import-mod-attrs` for module attributes): | | | arguments and local | | | | variables | +-----------------+-------------------+---------------------------+ +| | co_lines() | returns an iterator that | +| | | yields successive | +| | | bytecode ranges | ++-----------------+-------------------+---------------------------+ +| | co_positions() | returns an iterator of | +| | | source code positions for | +| | | each bytecode instruction | ++-----------------+-------------------+---------------------------+ +| | replace() | returns a copy of the | +| | | code object with new | +| | | values | ++-----------------+-------------------+---------------------------+ | generator | __name__ | name | +-----------------+-------------------+---------------------------+ | | __qualname__ | qualified name | |