MCPcopy Index your code
hub / github.com/RustPython/RustPython / getdoc

Function getdoc

Lib/pydoc.py:202–205  ·  view source on GitHub ↗

Get the doc string or comments for an object.

(object)

Source from the content-addressed store, hash-verified

200 return inspect.cleandoc(doc)
201
202def getdoc(object):
203 """Get the doc string or comments for an object."""
204 result = _getdoc(object) or inspect.getcomments(object)
205 return result and re.sub('^ *\n', '', result.rstrip()) or ''
206
207def splitdoc(doc):
208 """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