PyDocs

Nav

Python Runtime Services

getattr_static

inspect

function · Added in 3.2 (source)
  • getattr_static(obj, attr)
  • getattr_static(obj, attr, default)
Retrieve attributes without triggering dynamic lookup via the
descriptor protocol,  __getattr__ or __getattribute__.

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