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

Method spill

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

Source from the content-addressed store, hash-verified

938 push('</dl>\n')
939
940 def spill(msg, attrs, predicate):
941 ok, attrs = _split_list(attrs, predicate)
942 if ok:
943 hr.maybe()
944 push(msg)
945 for name, kind, homecls, value in ok:
946 try:
947 value = getattr(object, name)
948 except Exception:
949 # Some descriptors may meet a failure in their __get__.
950 # (bug #1785)
951 push(self.docdata(value, name, mod))
952 else:
953 push(self.document(value, name, mod,
954 funcs, classes, mdict, object, homecls))
955 push('\n')
956 return attrs
957
958 def spilldescriptors(msg, attrs, predicate):
959 ok, attrs = _split_list(attrs, predicate)

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected