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

Method spill

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

Source from the content-addressed store, hash-verified

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