Greg Jednaszewski <jednaszew...@gmail.com> added the comment:

Oops, thanks.  I should have known that.  However, should this work?  This is 
what initially led me to file this ticket.  My initial example was a bad one.

>>> from collections import defaultdict
>>> d = defaultdict(int)
>>> d['bar'] += 1
>>> "{bar}".format(**d)
'1'
>>> "{foo}".format(**d)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
KeyError: 'foo'

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue8134>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to