Message8301
Example in CPython 2.7:
>>> import string
>>> string.Formatter().format(u"{a}", a=u"b")
u'b'
>>>
Example in Jython 2.7:
>>> import string
>>> string.Formatter().format(u"{a}", a=u"b")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/share/jython-2.7/Lib/string.py", line 545, in format
return self.vformat(format_string, args, kwargs)
File "/usr/share/jython-2.7/Lib/string.py", line 549, in vformat
result = self._vformat(format_string, args, kwargs, used_args, 2)
File "/usr/share/jython-2.7/Lib/string.py", line 557, in _vformat
for literal_text, field_name, format_spec, conversion in \
File "/usr/share/jython-2.7/Lib/string.py", line 621, in parse
return format_string._formatter_parser()
AttributeError: 'unicode' object has no attribute '_formatter_parser'
>>> |
|
Date |
User |
Action |
Args |
2014-04-23 07:52:56 | Arfrever | set | messageid: <1398239576.41.0.0809600686972.issue2028@psf.upfronthosting.co.za> |
2014-04-23 07:52:56 | Arfrever | set | recipients:
+ Arfrever, fwierzbicki, seletz |
2014-04-23 07:52:56 | Arfrever | link | issue2028 messages |
2014-04-23 07:52:55 | Arfrever | create | |
|