[docs] [issue10813] Suppress adding decimal point for places=0 in moneyfmt()
Carsten Grohmann
report at bugs.python.org
Fri Jan 7 07:49:50 CET 2011
Carsten Grohmann <carstengrohmann at gmx.de> added the comment:
Setting dp to an empty string is only a workaround from my perspective.
I get the value of the places parameter from a configuration instance and have to implement an additional check "places == 0" every time I call the original moneyfmt(). To reduce this effort I've changed my moneyfmt() function and applied the patch above.
I see only a valuable posibilities from my perspective: apply the patch. Because it would simplify life a little bit :-)
At end it's up to you because the current documentation stated "dp: ... only specify as blank when places is zero".
Regards,
Carsten
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10813>
_______________________________________
More information about the docs
mailing list