Author skrah
Recipients eric.smith, mark.dickinson, skrah
Date 2010-02-22.21:32:22
SpamBayes Score 2.27911e-05
Marked as misclassified No
Message-id <1266874344.28.0.91005910732.issue6871@psf.upfronthosting.co.za>
In-reply-to
Content
I couldn't find other issues where #1 and #2 are addressed. This
is from py3k:


#1:

>>> format(float('nan'), '+08.4')
'+0000nan'
[70141 refs]
>>> format(Decimal('nan'), '+08.4')
'    +NaN'


#2:>>> format(float(123), "00")
'123.0'
[70141 refs]
>>> format(Decimal(123), "00")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/stefan/svn/py3k/Lib/decimal.py", line 3633, in __format__
    spec = _parse_format_specifier(specifier, _localeconv=_localeconv)
  File "/home/stefan/svn/py3k/Lib/decimal.py", line 5915, in _parse_format_specifier
    raise ValueError("Invalid format specifier: " + format_spec)
ValueError: Invalid format specifier: 00
[70141 refs]
History
Date User Action Args
2010-02-22 21:32:24skrahsetrecipients: + skrah, mark.dickinson, eric.smith
2010-02-22 21:32:24skrahsetmessageid: <1266874344.28.0.91005910732.issue6871@psf.upfronthosting.co.za>
2010-02-22 21:32:22skrahlinkissue6871 messages
2010-02-22 21:32:22skrahcreate