@@ -4556,7 +4556,7 @@ can be used interchangeably to index the same dictionary entry.
4556
4556
4557
4557
Return a shallow copy of the dictionary.
4558
4558
4559
- .. classmethod :: fromkeys(iterable[ , value] )
4559
+ .. classmethod :: fromkeys(iterable, value=None )
4560
4560
4561
4561
Create a new dictionary with keys from *iterable * and values set to *value *.
4562
4562
@@ -4566,7 +4566,7 @@ can be used interchangeably to index the same dictionary entry.
4566
4566
such as an empty list. To get distinct values, use a :ref: `dict
4567
4567
comprehension <dict>` instead.
4568
4568
4569
- .. method :: get(key[ , default] )
4569
+ .. method :: get(key, default=None )
4570
4570
4571
4571
Return the value for *key * if *key * is in the dictionary, else *default *.
4572
4572
If *default * is not given, it defaults to ``None ``, so that this method
@@ -4608,7 +4608,7 @@ can be used interchangeably to index the same dictionary entry.
4608
4608
4609
4609
.. versionadded :: 3.8
4610
4610
4611
- .. method :: setdefault(key[ , default] )
4611
+ .. method :: setdefault(key, default=None )
4612
4612
4613
4613
If *key * is in the dictionary, return its value. If not, insert *key *
4614
4614
with a value of *default * and return *default *. *default * defaults to
0 commit comments