- Python Home
- About
- News
- Documentation
- Downloads
- Community
- Foundation
- Developer's Guide
- Issue Tracker
- Issues
- Summaries
- User
- Administration
- Help
➜
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 | mark.dickinson, skrah |
| Date | 2009-09-09.16:07:18 |
| SpamBayes Score | 1.873059e-05 |
| Marked as misclassified | No |
| Message-id | <1252512442.21.0.45305758987.issue6871@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
|---|
Hi,
I've two more issues where format behavior should probably be identical:
1: (version 2.6 vs. 3.1):
Version 2.6:
>>> format(Decimal("NaN"), "+08.4")
'+0000NaN'
>>> format(float("NaN"), "+08.4")
'+00.0nan'
Version 3.1:
>>> format(Decimal("NaN"), "+08.4")
'+NaN '
>>> format(float("NaN"), "+08.4")
'+0000nan'
2: (float vs. decimal):
>>> format(float(123), "00")
'123.0'
>>> format(Decimal(123), "00")
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 5563, in
_parse_format_specifier
raise ValueError("Invalid format specifier: " + format_spec)
ValueError: Invalid format specifier: 00 |
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2009-09-09 16:07:23 | skrah | set | recipients: + skrah, mark.dickinson |
| 2009-09-09 16:07:22 | skrah | set | messageid: <1252512442.21.0.45305758987.issue6871@psf.upfronthosting.co.za> |
| 2009-09-09 16:07:20 | skrah | link | issue6871 messages |
| 2009-09-09 16:07:19 | skrah | create |
Powered by Roundup Copyright © 1990-2022, Python Software Foundation
Legal Statements
