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.
2 parents f596830 + 412c089 commit be63fc1Copy full SHA for be63fc1
1 file changed
Doc/library/inspect.rst
@@ -1574,10 +1574,11 @@ properties, will be invoked and :meth:`~object.__getattr__` and
1574
may be called.
1575
1576
For cases where you want passive introspection, like documentation tools, this
1577
-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`
1578
but avoids executing code when it fetches attributes.
1579
1580
-.. function:: getattr_static(obj, attr, default=None)
+.. function:: getattr_static(obj, attr)
1581
+ getattr_static(obj, attr, default)
1582
1583
Retrieve attributes without triggering dynamic lookup via the
1584
descriptor protocol, :meth:`~object.__getattr__`
0 commit comments