MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / spill

Method spill

tools/python-3.11.9-amd64/Lib/pydoc.py:922–938  ·  view source on GitHub ↗
(msg, attrs, predicate)

Source from the content-addressed store, hash-verified

920 push('</dl>\n')
921
922 def spill(msg, attrs, predicate):
923 ok, attrs = _split_list(attrs, predicate)
924 if ok:
925 hr.maybe()
926 push(msg)
927 for name, kind, homecls, value in ok:
928 try:
929 value = getattr(object, name)
930 except Exception:
931 # Some descriptors may meet a failure in their __get__.
932 # (bug #1785)
933 push(self.docdata(value, name, mod))
934 else:
935 push(self.document(value, name, mod,
936 funcs, classes, mdict, object, homecls))
937 push('\n')
938 return attrs
939
940 def spilldescriptors(msg, attrs, predicate):
941 ok, attrs = _split_list(attrs, predicate)

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected