Message358036
I have no problem of making my programme run properly (asking first if in dict etc), but I just read the docu of dict.setdefault
setdefault(key[, default])
If key is in the dictionary, return its value. If not, insert key with a value of default and return default. default defaults to None.
and it clearly reads if the key is.. return its value, with a full stop;
so either the docu is wrong (but proposes exactly the needed shortcut) or python is as it is: come in & find out |
|
Date |
User |
Action |
Args |
2019-12-08 21:47:05 | da-dada | set | recipients:
+ da-dada, eric.smith, remi.lapeyre |
2019-12-08 21:47:05 | da-dada | set | messageid: <1575841625.12.0.864811549742.issue38998@roundup.psfhosted.org> |
2019-12-08 21:47:05 | da-dada | link | issue38998 messages |
2019-12-08 21:47:04 | da-dada | create | |
|