Commit a5ef8324 authored by Yury Selivanov's avatar Yury Selivanov

docs.inspect: Fix BoundArguments example. Issue #22998.

parent f3e2e092
...@@ -642,7 +642,8 @@ function. ...@@ -642,7 +642,8 @@ function.
((5,), {}) ((5,), {})
>>> for param in sig.parameters.values(): >>> for param in sig.parameters.values():
... if param.name not in ba.arguments: ... if (param.name not in ba.arguments
... and param.default is not param.empty):
... ba.arguments[param.name] = param.default ... ba.arguments[param.name] = param.default
>>> ba.args, ba.kwargs >>> ba.args, ba.kwargs
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment