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

Method docdata

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

Produce text documentation for a data descriptor.

(self, object, name=None, mod=None, cl=None, *ignored)

Source from the content-addressed store, hash-verified

1595 return decl + '\n' + (doc and self.indent(doc).rstrip() + '\n')
1596
1597 def docdata(self, object, name=None, mod=None, cl=None, *ignored):
1598 """Produce text documentation for a data descriptor."""
1599 results = []
1600 push = results.append
1601
1602 if name:
1603 push(self.bold(name))
1604 push('\n')
1605 doc = getdoc(object) or ''
1606 if doc:
1607 push(self.indent(doc))
1608 push('\n')
1609 return ''.join(results)
1610
1611 docproperty = docdata
1612

Callers 2

spillMethod · 0.95
spilldescriptorsMethod · 0.95

Calls 5

boldMethod · 0.95
indentMethod · 0.95
getdocFunction · 0.70
pushFunction · 0.50
joinMethod · 0.45

Tested by

no test coverage detected