Aug. 4, 2010
5:09 p.m.
On Thu, Aug 5, 2010 at 8:02 AM, Fred Drake <fdrake@acm.org> wrote:
On Wed, Aug 4, 2010 at 5:57 PM, Nick Coghlan <ncoghlan@gmail.com> wrote:
and use a default message of "'Key not found: %r' % key" if the key argument is supplied without an explicit message
I suspect you meant a default message of
'Key not found: %r' % (key,)
since `key` might be a 1-tuple. :-)
Gah, you're right. Maybe I should have said "'Key not found: {}'.format(key)" :) Crazy-overloaded-mod-operators'ly, Nick. -- Nick Coghlan | ncoghlan@gmail.com | Brisbane, Australia