Message149214
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 |
|
Date |
User |
Action |
Args |
2011-12-11 07:10:50 | ncoghlan | set | recipients:
+ ncoghlan |
2011-12-11 07:10:50 | ncoghlan | set | messageid: <1323587450.48.0.625379374057.issue13579@psf.upfronthosting.co.za> |
2011-12-11 07:09:49 | ncoghlan | link | issue13579 messages |
2011-12-11 07:09:49 | ncoghlan | create | |
|