Message8301

Author Arfrever
Recipients Arfrever, fwierzbicki, seletz
Date 2014-04-23.07:52:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1398239576.41.0.0809600686972.issue2028@psf.upfronthosting.co.za>
In-reply-to
Content
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'
>>>
History
Date User Action Args
2014-04-23 07:52:56Arfreversetmessageid: <1398239576.41.0.0809600686972.issue2028@psf.upfronthosting.co.za>
2014-04-23 07:52:56Arfreversetrecipients: + Arfrever, fwierzbicki, seletz
2014-04-23 07:52:56Arfreverlinkissue2028 messages
2014-04-23 07:52:55Arfrevercreate