diff options
-rw-r--r-- | Doc/library/inspect.rst | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/library/inspect.rst b/Doc/library/inspect.rst index a7c127c..c540b11 100644 --- a/Doc/library/inspect.rst +++ b/Doc/library/inspect.rst @@ -642,7 +642,8 @@ function. ((5,), {}) >>> 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.args, ba.kwargs |