Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update inspect doc
  • Loading branch information
xuantengh committed Oct 30, 2024
commit 0edf4fc5c4efc29043623e4a801a436c6da1a3be
8 changes: 8 additions & 0 deletions Doc/library/inspect.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1700,6 +1700,14 @@ which is a bitmap of the following flags:

.. versionadded:: 3.6

.. data:: CO_HAS_DOCSTRING

The flag is set when there is a docstring for the code object in
the source code. If so, it will be the first item in
Comment thread
xuantengh marked this conversation as resolved.
Outdated
:attr:`~codeobject.co_consts`.

.. versionadded:: 3.14

.. note::
The flags are specific to CPython, and may not be defined in other
Python implementations. Furthermore, the flags are an implementation
Expand Down