Message295353
As brief as can be, the following script works in Python 3.4 and Python 3.5:
from collections import defaultdict
mydict = defaultdict(lambda: 'default')
print('{foo}'.format(**mydict))
And prints "default".
In Python 3.6, you get a KeyError for foo. |
|
Date |
User |
Action |
Args |
2017-06-07 16:39:08 | carmenbianca | set | recipients:
+ carmenbianca |
2017-06-07 16:39:08 | carmenbianca | set | messageid: <1496853548.43.0.683840894266.issue30590@psf.upfronthosting.co.za> |
2017-06-07 16:39:08 | carmenbianca | link | issue30590 messages |
2017-06-07 16:39:08 | carmenbianca | create | |
|