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

Method spill

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

Source from the content-addressed store, hash-verified

1430 hr = HorizontalRule()
1431
1432 def spill(msg, attrs, predicate):
1433 ok, attrs = _split_list(attrs, predicate)
1434 if ok:
1435 hr.maybe()
1436 push(msg)
1437 for name, kind, homecls, value in ok:
1438 try:
1439 value = getattr(object, name)
1440 except Exception:
1441 # Some descriptors may meet a failure in their __get__.
1442 # (bug #1785)
1443 push(self.docdata(value, name, mod))
1444 else:
1445 push(self.document(value,
1446 name, mod, object, homecls))
1447 return attrs
1448
1449 def spilldescriptors(msg, attrs, predicate):
1450 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