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

Function getmembers

Lib/inspect.py:520–523  ·  view source on GitHub ↗

Return all members of an object as (name, value) pairs sorted by name. Optionally, only return members that satisfy a given predicate.

(object, predicate=None)

Source from the content-addressed store, hash-verified

518 return results
519
520def getmembers(object, predicate=None):
521 """Return all members of an object as (name, value) pairs sorted by name.
522 Optionally, only return members that satisfy a given predicate."""
523 return _getmembers(object, predicate, getattr)
524
525def getmembers_static(object, predicate=None):
526 """Return all members of an object as (name, value) pairs sorted by name

Callers

nothing calls this directly

Calls 1

_getmembersFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…