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

Method docdata

Lib/pydoc.py:1155–1167  ·  view source on GitHub ↗

Produce html documentation for a data descriptor.

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

Source from the content-addressed store, hash-verified

1153 return '<dl><dt>%s</dt>%s</dl>\n' % (decl, doc)
1154
1155 def docdata(self, object, name=None, mod=None, cl=None, *ignored):
1156 """Produce html documentation for a data descriptor."""
1157 results = []
1158 push = results.append
1159
1160 if name:
1161 push('<dl><dt><strong>%s</strong></dt>\n' % name)
1162 doc = self.markup(getdoc(object), self.preformat)
1163 if doc:
1164 push('<dd><span class="code">%s</span></dd>\n' % doc)
1165 push('</dl>\n')
1166
1167 return ''.join(results)
1168
1169 docproperty = docdata
1170

Callers 3

spillMethod · 0.95
spilldescriptorsMethod · 0.95
documentMethod · 0.45

Calls 3

markupMethod · 0.95
getdocFunction · 0.70
joinMethod · 0.45

Tested by

no test coverage detected