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

Method docdata

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

1198 return '<dl><dt>%s</dt>%s</dl>\n' % (decl, doc)
1199
1200 def docdata(self, object, name=None, mod=None, cl=None, *ignored):
1201 """Produce html documentation for a data descriptor."""
1202 results = []
1203 push = results.append
1204
1205 if name:
1206 push('<dl><dt><strong>%s</strong></dt>\n' % name)
1207 doc = self.markup(getdoc(object), self.preformat)
1208 if doc:
1209 push('<dd><span class="code">%s</span></dd>\n' % doc)
1210 push('</dl>\n')
1211
1212 return ''.join(results)
1213
1214 docproperty = docdata
1215

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