We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
inspect.getattr_static
1 parent 2f91315 commit 187982aCopy full SHA for 187982a
1 file changed
Doc/library/inspect.rst
@@ -1614,10 +1614,11 @@ properties, will be invoked and :meth:`~object.__getattr__` and
1614
may be called.
1615
1616
For cases where you want passive introspection, like documentation tools, this
1617
-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`
1618
but avoids executing code when it fetches attributes.
1619
1620
-.. function:: getattr_static(obj, attr, default=None)
+.. function:: getattr_static(obj, attr)
1621
+ getattr_static(obj, attr, default)
1622
1623
Retrieve attributes without triggering dynamic lookup via the
1624
descriptor protocol, :meth:`~object.__getattr__`
0 commit comments