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 ncoghlan
Recipients ncoghlan
Date 2011-12-11.07:09:49
SpamBayes Score 4.669963e-06
Marked as misclassified No
Message-id <1323587450.48.0.625379374057.issue13579@psf.upfronthosting.co.za>
In-reply-to
Content
As the subject line says:

>>> fmt = "{0!a}"
>>> fmt.format(10)
'10'
>>> import string
>>> string.Formatter().format(fmt, 10)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.2/string.py", line 180, in format
    return self.vformat(format_string, args, kwargs)
  File "/usr/lib/python3.2/string.py", line 184, in vformat
    result = self._vformat(format_string, args, kwargs, used_args, 2)
  File "/usr/lib/python3.2/string.py", line 210, in _vformat
    obj = self.convert_field(obj, conversion)
  File "/usr/lib/python3.2/string.py", line 245, in convert_field
    raise ValueError("Unknown conversion specifier {0!s}".format(conversion))
ValueError: Unknown conversion specifier a
History
Date User Action Args
2011-12-11 07:10:50ncoghlansetrecipients: + ncoghlan
2011-12-11 07:10:50ncoghlansetmessageid: <1323587450.48.0.625379374057.issue13579@psf.upfronthosting.co.za>
2011-12-11 07:09:49ncoghlanlinkissue13579 messages
2011-12-11 07:09:49ncoghlancreate