Message358605
.get() is just a regular function call. And like all python functions, all of the arguments are evaluated before the function is called. There is no mechanism in python to delay the evaluation of a arguments.
You might want to look at collections.defaultdict. You can supply a factory function, so that the call is delayed until a missing key is found. |
|
Date |
User |
Action |
Args |
2019-12-18 01:58:56 | eric.smith | set | recipients:
+ eric.smith, martinmeo |
2019-12-18 01:58:56 | eric.smith | set | messageid: <1576634336.6.0.0275807301385.issue39083@roundup.psfhosted.org> |
2019-12-18 01:58:56 | eric.smith | link | issue39083 messages |
2019-12-18 01:58:56 | eric.smith | create | |
|