Skip to content

Commit be63fc1

Browse files
Merge branch '3.14' into backport-2f91315-3.14
2 parents f596830 + 412c089 commit be63fc1

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Doc/library/inspect.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1574,10 +1574,11 @@ properties, will be invoked and :meth:`~object.__getattr__` and
15741574
may be called.
15751575

15761576
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`
1577+
can be inconvenient. :func:`getattr_static` has a similar signature as :func:`getattr`
15781578
but avoids executing code when it fetches attributes.
15791579

1580-
.. function:: getattr_static(obj, attr, default=None)
1580+
.. function:: getattr_static(obj, attr)
1581+
getattr_static(obj, attr, default)
15811582

15821583
Retrieve attributes without triggering dynamic lookup via the
15831584
descriptor protocol, :meth:`~object.__getattr__`

0 commit comments

Comments
 (0)