PyDocs

Nav

Python Runtime Services

CO_HAS_DOCSTRING

inspect

data · Added in 3.14
The flag is set when there is a docstring for the code object in the source code. If set, it will be the first item in co_consts.
0 Examples
No examples for inspect/CO_HAS_DOCSTRING.
See Also
No see-alsos for inspect/CO_HAS_DOCSTRING
0 Notes
No notes for CO_HAS_DOCSTRING