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

Method spilldata

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

Source from the content-addressed store, hash-verified

1502 return attrs
1503
1504 def spilldata(msg, attrs, predicate):
1505 ok, attrs = _split_list(attrs, predicate)
1506 if ok:
1507 hr.maybe()
1508 push(msg)
1509 for name, kind, homecls, value in ok:
1510 doc = getdoc(value)
1511 try:
1512 obj = getattr(object, name)
1513 except AttributeError:
1514 obj = homecls.__dict__[name]
1515 push(self.docother(obj, name, mod, maxlen=70, doc=doc) +
1516 '\n')
1517 return attrs
1518
1519 attrs = [(name, kind, cls, value)
1520 for name, kind, cls, value in classify_class_attrs(object)

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected