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

Method spilldata

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

Source from the content-addressed store, hash-verified

1456 return attrs
1457
1458 def spilldata(msg, attrs, predicate):
1459 ok, attrs = _split_list(attrs, predicate)
1460 if ok:
1461 hr.maybe()
1462 push(msg)
1463 for name, kind, homecls, value in ok:
1464 doc = getdoc(value)
1465 try:
1466 obj = getattr(object, name)
1467 except AttributeError:
1468 obj = homecls.__dict__[name]
1469 push(self.docother(obj, name, mod, maxlen=70, doc=doc) +
1470 '\n')
1471 return attrs
1472
1473 attrs = [(name, kind, cls, value)
1474 for name, kind, cls, value in classify_class_attrs(object)

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected