ID EN
Inspect

getmembers

Python 3.11

Return all the members of an object in a list of (name, value) pairs sorted by name. If the optional predicate argument—which will be called with the value object of each member—is supplied, only members for which the predicate returns a true value are included.

Syntax

PYTHON
inspect.getmembers(object[, predicate])

See Also

getmembers() __dir__()