This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author blop
Recipients blop
Date 2008-08-07.13:33:04
SpamBayes Score 6.2743144e-05
Marked as misclassified No
Message-id <1218115986.04.0.715940138525.issue3516@psf.upfronthosting.co.za>
In-reply-to
Content
>>> "%.%s" % ()
'%s'
>>> "%(a).%(b)s" % dict(a=2)
'%(b)s'
>>> "%(a).%(b)s" % dict(a=2, b=3)
'%(b)s'
>>> "%(a).%(b)s" % dict()
Traceback (most recent call last):
  File "<pyshell#6>", line 1, in -toplevel-
    "%(a).%(b)s" % dict()
KeyError: 'a'

this is counter intuitive and cannot be deduced from the documentation.
History
Date User Action Args
2008-08-07 13:33:06blopsetrecipients: + blop
2008-08-07 13:33:06blopsetmessageid: <1218115986.04.0.715940138525.issue3516@psf.upfronthosting.co.za>
2008-08-07 13:33:04bloplinkissue3516 messages
2008-08-07 13:33:04blopcreate