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

Method docdata

tools/python-3.11.9-amd64/Lib/pydoc.py:1147–1159  ·  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

1145 return '<dl><dt>%s</dt>%s</dl>\n' % (decl, doc)
1146
1147 def docdata(self, object, name=None, mod=None, cl=None, *ignored):
1148 """Produce html documentation for a data descriptor."""
1149 results = []
1150 push = results.append
1151
1152 if name:
1153 push('<dl><dt><strong>%s</strong></dt>\n' % name)
1154 doc = self.markup(getdoc(object), self.preformat)
1155 if doc:
1156 push('<dd><span class="code">%s</span></dd>\n' % doc)
1157 push('</dl>\n')
1158
1159 return ''.join(results)
1160
1161 docproperty = docdata
1162

Callers 3

spillMethod · 0.95
spilldescriptorsMethod · 0.95
documentMethod · 0.45

Calls 4

markupMethod · 0.95
getdocFunction · 0.70
pushFunction · 0.50
joinMethod · 0.45

Tested by

no test coverage detected