@@ -4565,7 +4565,7 @@ can be used interchangeably to index the same dictionary entry.
4565
4565
4566
4566
Return a shallow copy of the dictionary.
4567
4567
4568
- .. classmethod :: fromkeys(iterable[ , value] )
4568
+ .. classmethod :: fromkeys(iterable, value=None )
4569
4569
4570
4570
Create a new dictionary with keys from *iterable * and values set to *value *.
4571
4571
@@ -4575,7 +4575,7 @@ can be used interchangeably to index the same dictionary entry.
4575
4575
such as an empty list. To get distinct values, use a :ref: `dict
4576
4576
comprehension <dict>` instead.
4577
4577
4578
- .. method :: get(key[ , default] )
4578
+ .. method :: get(key, default=None )
4579
4579
4580
4580
Return the value for *key * if *key * is in the dictionary, else *default *.
4581
4581
If *default * is not given, it defaults to ``None ``, so that this method
@@ -4617,7 +4617,7 @@ can be used interchangeably to index the same dictionary entry.
4617
4617
4618
4618
.. versionadded :: 3.8
4619
4619
4620
- .. method :: setdefault(key[ , default] )
4620
+ .. method :: setdefault(key, default=None )
4621
4621
4622
4622
If *key * is in the dictionary, return its value. If not, insert *key *
4623
4623
with a value of *default * and return *default *. *default * defaults to
0 commit comments