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: decimal receipe moneyfmt suppress leading 0
Type: enhancement Stage:
Components: Documentation Versions: Python 2.6
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: rhettinger Nosy List: cgrohmann, georg.brandl, rhettinger
Priority: normal Keywords: patch

Created on 2008-04-17 09:47 by cgrohmann, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
moneyfmt.diff cgrohmann, 2008-04-17 09:47 Patch to add new option "zero"
Messages (2)
msg65581 - (view) Author: Carsten Grohmann (cgrohmann) Date: 2008-04-17 09:47
The current version of the receipe moneyfmt doesn't have a leading "0" 
for 1 < value < -1.

The attached patch adds a new parameter "zero". The parameter is empty 
per default and can set to "0" print a leading "0". The examples are 
updated also.

Possibly the new option should be "0" per default.

Regards,
Carsten
msg65583 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2008-04-17 10:50
Thanks for the contribution.

Changed to be non-optional and applied as r62364 but not backported.
History
Date User Action Args
2022-04-11 14:56:33adminsetgithub: 46900
2008-04-17 10:50:05rhettingersetstatus: open -> closed
resolution: accepted
messages: + msg65583
2008-04-17 10:22:40rhettingersetassignee: georg.brandl -> rhettinger
versions: + Python 2.6, - Python 2.5
type: enhancement
nosy: + rhettinger
2008-04-17 09:47:53cgrohmanncreate