Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions Doc/library/inspect.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1614,10 +1614,11 @@ properties, will be invoked and :meth:`~object.__getattr__` and
may be called.

For cases where you want passive introspection, like documentation tools, this
can be inconvenient. :func:`getattr_static` has the same signature as :func:`getattr`
can be inconvenient. :func:`getattr_static` has a similar signature as :func:`getattr`
but avoids executing code when it fetches attributes.

.. function:: getattr_static(obj, attr, default=None)
.. function:: getattr_static(obj, attr)
getattr_static(obj, attr, default)

Retrieve attributes without triggering dynamic lookup via the
descriptor protocol, :meth:`~object.__getattr__`
Expand Down
Loading