[issue5515] 'n' formatting for int and float handles leading zero padding poorly

Mark Dickinson report at bugs.python.org
Thu Mar 19 18:46:09 CET 2009


Mark Dickinson <dickinsm at gmail.com> added the comment:

I agree that Decimal should be consistent with int and float.

I'm not sure I'd classify the current behaviour as a bug, though:
presumably this behaviour was intentional at the time it was
originally coded?  I guess backporting *probably* won't do any
harm, since it seems likely that format(x, 'n') hasn't gained
wide adoption yet.

+1 for changing this in 2.7 and 3.1;  -0 for backporting the change.

Eric, did you mean to assign this to me?  I'm not sure I have
time for this at the moment, though I'd be happy to review
and test when the time comes.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5515>
_______________________________________


More information about the Python-bugs-list mailing list