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.
get
1 parent 9cac0ec commit 6730fe8Copy full SHA for 6730fe8
Doc/library/stdtypes.rst
@@ -4640,7 +4640,7 @@ can be used interchangeably to index the same dictionary entry.
4640
such as an empty list. To get distinct values, use a :ref:`dict
4641
comprehension <dict>` instead.
4642
4643
- .. method:: get(key, default=None)
+ .. method:: get(key, default=None, /)
4644
4645
Return the value for *key* if *key* is in the dictionary, else *default*.
4646
If *default* is not given, it defaults to ``None``, so that this method
0 commit comments