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

Function allmethods

tools/python-3.11.9-amd64/Lib/pydoc.py:260–268  ·  view source on GitHub ↗
(cl)

Source from the content-addressed store, hash-verified

258
259
260def allmethods(cl):
261 methods = {}
262 for key, value in inspect.getmembers(cl, inspect.isroutine):
263 methods[key] = 1
264 for base in cl.__bases__:
265 methods.update(allmethods(base)) # all your base are belong to us
266 for key in methods.keys():
267 methods[key] = getattr(cl, key)
268 return methods
269
270def _split_list(s, predicate):
271 """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