Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ea2d66e

Browse files
committed
doc/inspect: Clarify docs for __defaults__, add docs for __kwdefaults__ #20380
1 parent 2eed8b7 commit ea2d66e

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

Doc/library/inspect.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,12 @@ attributes:
6969
| | | :term:`bytecode` |
7070
+-----------+-----------------+---------------------------+
7171
| | __defaults__ | tuple of any default |
72-
| | | values for arguments |
72+
| | | values for positional or |
73+
| | | keyword parameters |
74+
+-----------+-----------------+---------------------------+
75+
| | __kwdefaults__ | mapping of any default |
76+
| | | values for keyword-only |
77+
| | | parameters |
7378
+-----------+-----------------+---------------------------+
7479
| | __globals__ | global namespace in which |
7580
| | | this function was defined |

0 commit comments

Comments
 (0)