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 skrah
Recipients eric.smith, mark.dickinson, skrah
Date 2009-09-07.15:47:59
SpamBayes Score 1.6698432e-10
Marked as misclassified No
Message-id <1252338480.95.0.455771369366.issue6850@psf.upfronthosting.co.za>
In-reply-to
Content
Yes, I'll do that.  -  The tracker has eaten my examples, so hopefully
this goes through:

1. format(Decimal("0.12345"), "7.1")   ->  '0.1    '

2. format(Decimal("0.12345"), "7.0g")  ->  '0.1    '

3. format(Decimal("0.12345"), "7.0")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.1/decimal.py", line 3611, in __format__
    spec = _parse_format_specifier(specifier, _localeconv=_localeconv)
  File "/usr/lib/python3.1/decimal.py", line 5595, in
_parse_format_specifier
    if format_dict['type'] in 'gG' or format_dict['type'] is None:
TypeError: 'in <string>' requires string as left operand, not NoneType

4. format(float("0.12345"), "7.0")     -> '    0.1'


But I've opened a separate issue now.
History
Date User Action Args
2009-09-07 15:48:00skrahsetrecipients: + skrah, mark.dickinson, eric.smith
2009-09-07 15:48:00skrahsetmessageid: <1252338480.95.0.455771369366.issue6850@psf.upfronthosting.co.za>
2009-09-07 15:47:59skrahlinkissue6850 messages
2009-09-07 15:47:59skrahcreate