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

Method spill

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

Source from the content-addressed store, hash-verified

1476 hr = HorizontalRule()
1477
1478 def spill(msg, attrs, predicate):
1479 ok, attrs = _split_list(attrs, predicate)
1480 if ok:
1481 hr.maybe()
1482 push(msg)
1483 for name, kind, homecls, value in ok:
1484 try:
1485 value = getattr(object, name)
1486 except Exception:
1487 # Some descriptors may meet a failure in their __get__.
1488 # (bug #1785)
1489 push(self.docdata(value, name, mod))
1490 else:
1491 push(self.document(value,
1492 name, mod, object, homecls))
1493 return attrs
1494
1495 def spilldescriptors(msg, attrs, predicate):
1496 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