PyDocs

Nav

Python Runtime Services

getmembers_static

inspect

function · Added in 3.11 (source)
  • getmembers_static(object[, predicate])
Return all members of an object as (name, value) pairs sorted by name
without triggering dynamic lookup via the descriptor protocol,
__getattr__ or __getattribute__. Optionally, only return members that
satisfy a given predicate.

Note: this function may not be able to retrieve all members
   that getmembers can fetch (like dynamically created attributes)
   and may find members that getmembers can't (like descriptors
   that raise AttributeError). It can also return descriptor objects
   instead of instance members in some cases.
0 Examples
No examples for inspect/getmembers_static.
See Also
No see-alsos for inspect/getmembers_static
0 Notes
No notes for getmembers_static