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 binkert
Recipients binkert
Date 2013-02-25.04:54:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1361768087.85.0.505159219434.issue17292@psf.upfronthosting.co.za>
In-reply-to
Content
Autonumbering with string.format does not work as it does in str.format:

>>> '{}'.format(1)
'1'
>>> import string
>>> string.Formatter().format('{}', 1)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/nate/src/python3/Lib/string.py", line 164, in format
    return self.vformat(format_string, args, kwargs)
  File "/Users/nate/src/python3/Lib/string.py", line 168, in vformat
    result = self._vformat(format_string, args, kwargs, used_args, 2)
  File "/Users/nate/src/python3/Lib/string.py", line 190, in _vformat
    obj, arg_used = self.get_field(field_name, args, kwargs)
  File "/Users/nate/src/python3/Lib/string.py", line 253, in get_field
    obj = self.get_value(first, args, kwargs)
  File "/Users/nate/src/python3/Lib/string.py", line 210, in get_value
    return kwargs[key]
History
Date User Action Args
2013-02-25 04:54:47binkertsetrecipients: + binkert
2013-02-25 04:54:47binkertsetmessageid: <1361768087.85.0.505159219434.issue17292@psf.upfronthosting.co.za>
2013-02-25 04:54:47binkertlinkissue17292 messages
2013-02-25 04:54:47binkertcreate