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

Method spilldata

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

Source from the content-addressed store, hash-verified

1010 return attrs
1011
1012 def spilldata(msg, attrs, predicate):
1013 ok, attrs = _split_list(attrs, predicate)
1014 if ok:
1015 hr.maybe()
1016 push(msg)
1017 for name, kind, homecls, value in ok:
1018 base = self.docother(getattr(object, name), name, mod)
1019 doc = getdoc(value)
1020 if not doc:
1021 push('<dl><dt>%s</dl>\n' % base)
1022 else:
1023 doc = self.markup(getdoc(value), self.preformat,
1024 funcs, classes, mdict)
1025 doc = '<dd><span class="code">%s</span>' % doc
1026 push('<dl><dt>%s%s</dl>\n' % (base, doc))
1027 push('\n')
1028 return attrs
1029
1030 attrs = [(name, kind, cls, value)
1031 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
getattrFunction · 0.85
getdocFunction · 0.70
maybeMethod · 0.45

Tested by

no test coverage detected