Message410174
The simplest way of collecting template names is to use a defaultdict:
>>> d = collections.defaultdict(str)
>>> string.Template('$a $b').substitute(d)
' '
>>> d.keys()
dict_keys(['a', 'b'])
You can use a custom mapping if you need special handling of absent keys. |
|
Date |
User |
Action |
Args |
2022-01-09 22:39:56 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, barry, ben11kehoe |
2022-01-09 22:39:56 | serhiy.storchaka | set | messageid: <1641767996.68.0.462664535252.issue46307@roundup.psfhosted.org> |
2022-01-09 22:39:56 | serhiy.storchaka | link | issue46307 messages |
2022-01-09 22:39:56 | serhiy.storchaka | create | |
|