MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / getdoc

Function getdoc

tools/python-3.11.9-amd64/Lib/pydoc.py:186–189  ·  view source on GitHub ↗

Get the doc string or comments for an object.

(object)

Source from the content-addressed store, hash-verified

184 return inspect.cleandoc(doc)
185
186def getdoc(object):
187 """Get the doc string or comments for an object."""
188 result = _getdoc(object) or inspect.getcomments(object)
189 return result and re.sub('^ *\n', '', result.rstrip()) or ''
190
191def splitdoc(doc):
192 """Split a doc string into a synopsis line (if any) and the rest."""

Callers 11

docmoduleMethod · 0.70
spilldataMethod · 0.70
docclassMethod · 0.70
docroutineMethod · 0.70
docdataMethod · 0.70
docmoduleMethod · 0.70
docclassMethod · 0.70
spilldataMethod · 0.70
docroutineMethod · 0.70
docdataMethod · 0.70
docotherMethod · 0.70

Calls 3

_getdocFunction · 0.85
subMethod · 0.45
rstripMethod · 0.45

Tested by

no test coverage detected