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

Method spilldata

tools/python-3.11.9-amd64/Lib/pydoc.py:949–965  ·  view source on GitHub ↗
(msg, attrs, predicate)

Source from the content-addressed store, hash-verified

947 return attrs
948
949 def spilldata(msg, attrs, predicate):
950 ok, attrs = _split_list(attrs, predicate)
951 if ok:
952 hr.maybe()
953 push(msg)
954 for name, kind, homecls, value in ok:
955 base = self.docother(getattr(object, name), name, mod)
956 doc = getdoc(value)
957 if not doc:
958 push('<dl><dt>%s</dl>\n' % base)
959 else:
960 doc = self.markup(getdoc(value), self.preformat,
961 funcs, classes, mdict)
962 doc = '<dd><span class="code">%s</span>' % doc
963 push('<dl><dt>%s%s</dl>\n' % (base, doc))
964 push('\n')
965 return attrs
966
967 attrs = [(name, kind, cls, value)
968 for name, kind, cls, value in classify_class_attrs(object)

Callers

nothing calls this directly

Calls 6

docotherMethod · 0.95
markupMethod · 0.95
_split_listFunction · 0.85
getdocFunction · 0.70
pushFunction · 0.50
maybeMethod · 0.45

Tested by

no test coverage detected