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.

classification
Title: Expand Decimal.__format__() support to include "n"
Type: Stage:
Components: Library (Lib) Versions: Python 3.1, Python 2.7
process
Status: closed Resolution: duplicate
Dependencies: Superseder: Implement __format__ for Decimal
View: 2110
Assigned To: mark.dickinson Nosy List: eric.smith, mark.dickinson, rhettinger
Priority: normal Keywords:

Created on 2009-03-12 20:00 by rhettinger, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (3)
msg83500 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2009-03-12 20:00
>>> from decimal import Decimal as D
>>> format(D('1234.5'), "n")
 . . .
ValueError: Invalid format specifier: n
msg83503 - (view) Author: Mark Dickinson (mark.dickinson) * (Python committer) Date: 2009-03-12 21:05
Thanks---this is already on my list of things to get done for 3.1:  see 
issue 2110.
msg83711 - (view) Author: Mark Dickinson (mark.dickinson) * (Python committer) Date: 2009-03-17 23:17
Closing as duplicate of issue 2110.
History
Date User Action Args
2022-04-11 14:56:46adminsetgithub: 49731
2009-03-17 23:17:13mark.dickinsonsetstatus: open -> closed
resolution: duplicate
superseder: Implement __format__ for Decimal
messages: + msg83711
2009-03-13 19:51:08eric.smithsetnosy: + eric.smith
2009-03-12 21:05:11mark.dickinsonsetmessages: + msg83503
2009-03-12 20:00:25rhettingercreate