Message359485
Instead of doing lookups with square brackets, consider using the dict.get() method that returns a default value rather than raising a KeyError for a missing key.
composer2[input1] --> composer2.get(input1, 0) |
|
Date |
User |
Action |
Args |
2020-01-07 01:19:28 | rhettinger | set | recipients:
+ rhettinger, eric.smith, ezio.melotti, mrabarnett, gerryc89 |
2020-01-07 01:19:28 | rhettinger | set | messageid: <1578359968.52.0.908759303719.issue39240@roundup.psfhosted.org> |
2020-01-07 01:19:28 | rhettinger | link | issue39240 messages |
2020-01-07 01:19:28 | rhettinger | create | |
|