Message92371
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. |
|
Date |
User |
Action |
Args |
2009-09-07 15:48:00 | skrah | set | recipients:
+ skrah, mark.dickinson, eric.smith |
2009-09-07 15:48:00 | skrah | set | messageid: <1252338480.95.0.455771369366.issue6850@psf.upfronthosting.co.za> |
2009-09-07 15:47:59 | skrah | link | issue6850 messages |
2009-09-07 15:47:59 | skrah | create | |
|