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

Function _getmethods

Lib/idlelib/rpc.py:581–590  ·  view source on GitHub ↗
(obj, methods)

Source from the content-addressed store, hash-verified

579 "__methods__", (), {})
580
581def _getmethods(obj, methods):
582 # Helper to get a list of methods from an object
583 # Adds names to dictionary argument 'methods'
584 for name in dir(obj):
585 attr = getattr(obj, name)
586 if callable(attr):
587 methods[name] = 1
588 if isinstance(obj, type):
589 for super in obj.__bases__:
590 _getmethods(super, methods)
591
592def _getattributes(obj, attributes):
593 for name in dir(obj):

Callers 1

localcallMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…