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

Method spill

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

Source from the content-addressed store, hash-verified

983 push('</dl>\n')
984
985 def spill(msg, attrs, predicate):
986 ok, attrs = _split_list(attrs, predicate)
987 if ok:
988 hr.maybe()
989 push(msg)
990 for name, kind, homecls, value in ok:
991 try:
992 value = getattr(object, name)
993 except Exception:
994 # Some descriptors may meet a failure in their __get__.
995 # (bug #1785)
996 push(self.docdata(value, name, mod))
997 else:
998 push(self.document(value, name, mod,
999 funcs, classes, mdict, object, homecls))
1000 push('\n')
1001 return attrs
1002
1003 def spilldescriptors(msg, attrs, predicate):
1004 ok, attrs = _split_list(attrs, predicate)

Callers

nothing calls this directly

Calls 5

docdataMethod · 0.95
_split_listFunction · 0.85
getattrFunction · 0.85
documentMethod · 0.80
maybeMethod · 0.45

Tested by

no test coverage detected