Message315021
The two lines are equivalent!
`d.setdefault(key, default)` does return the same thing as `d.get(key, default)`, and then sets `d[key] = default` if the get method went into the “key was not found, let’s return default” branch. |
|
Date |
User |
Action |
Args |
2018-04-06 16:31:54 | eric.araujo | set | recipients:
+ eric.araujo, docs@python, Paddy McCarthy |
2018-04-06 16:31:54 | eric.araujo | set | messageid: <1523032314.25.0.682650639539.issue33235@psf.upfronthosting.co.za> |
2018-04-06 16:31:54 | eric.araujo | link | issue33235 messages |
2018-04-06 16:31:54 | eric.araujo | create | |
|