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

Function allmethods

Lib/pydoc.py:232–240  ·  view source on GitHub ↗
(cl)

Source from the content-addressed store, hash-verified

230
231
232def allmethods(cl):
233 methods = {}
234 for key, value in inspect.getmembers(cl, inspect.isroutine):
235 methods[key] = 1
236 for base in cl.__bases__:
237 methods.update(allmethods(base)) # all your base are belong to us
238 for key in methods.keys():
239 methods[key] = getattr(cl, key)
240 return methods
241
242def _split_list(s, predicate):
243 """Split sequence s via predicate, and return pair ([true], [false]).

Callers

nothing calls this directly

Calls 3

getmembersMethod · 0.80
updateMethod · 0.45
keysMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…