MCPcopy Index your code
hub / github.com/python/cpython / docdata

Method docdata

Lib/pydoc.py:1595–1607  ·  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

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

Callers 2

spillMethod · 0.95
spilldescriptorsMethod · 0.95

Calls 4

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

Tested by

no test coverage detected