Message315022
Note that if we switch the order like you propose, we don’t need to use dict.get:
set D[k]=d if k not in D then return D[k]
I suspect the current doc was written the way it is because it matches the actual implementation. |
|
Date |
User |
Action |
Args |
2018-04-06 16:33:18 | eric.araujo | set | recipients:
+ eric.araujo, docs@python, Paddy McCarthy |
2018-04-06 16:33:18 | eric.araujo | set | messageid: <1523032398.05.0.682650639539.issue33235@psf.upfronthosting.co.za> |
2018-04-06 16:33:18 | eric.araujo | link | issue33235 messages |
2018-04-06 16:33:18 | eric.araujo | create | |
|