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

Method spilldata

Lib/pydoc.py:967–983  ·  view source on GitHub ↗
(msg, attrs, predicate)

Source from the content-addressed store, hash-verified

965 return attrs
966
967 def spilldata(msg, attrs, predicate):
968 ok, attrs = _split_list(attrs, predicate)
969 if ok:
970 hr.maybe()
971 push(msg)
972 for name, kind, homecls, value in ok:
973 base = self.docother(getattr(object, name), name, mod)
974 doc = getdoc(value)
975 if not doc:
976 push('<dl><dt>%s</dl>\n' % base)
977 else:
978 doc = self.markup(getdoc(value), self.preformat,
979 funcs, classes, mdict)
980 doc = '<dd><span class="code">%s</span>' % doc
981 push('<dl><dt>%s%s</dl>\n' % (base, doc))
982 push('\n')
983 return attrs
984
985 attrs = [(name, kind, cls, value)
986 for name, kind, cls, value in classify_class_attrs(object)

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected