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

2009-04-22 Thread Eric Smith
Eric Smith added the comment: Fixed in trunk as part of r71796. Closing the issue. -- resolution: -> fixed status: open -> closed ___ Python tracker ___

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

2009-04-16 Thread Eric Smith
Eric Smith added the comment: Fixed in py3k (will be 3.1) in r71665. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

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

2009-04-16 Thread Eric Smith
Changes by Eric Smith : -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/option

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

2009-04-16 Thread Eric Smith
Eric Smith added the comment: Fixed in trunk (will be 3.1) in r71665. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

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

2009-04-12 Thread Eric Smith
Eric Smith added the comment: This won't get fixed in 3.0 or 2.6. Still not sure about 2.7, but I'm considering how to fix it there. -- versions: -Python 2.6, Python 3.0 ___ Python tracker

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

2009-03-19 Thread Eric Smith
Eric Smith added the comment: Oops, assigning it to you was an error. I was just trying to figure out what your userid is so I could add you to Nosy, and I was using "Assigned To" to find it. I've fixed that. The current behavior is an accident of the implementation. The implementation isn't ba

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

2009-03-19 Thread Mark Dickinson
Mark Dickinson 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, sin

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

2009-03-19 Thread Eric Smith
Eric Smith added the comment: C# doesn't seem to have the issue because they don't allow any modifies when specifying locale-aware formatting. Specifying a picture seems to be the only way to get leading zeros added. Similarly, Java looks to be picture-based. -- __

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

2009-03-18 Thread Raymond Hettinger
Raymond Hettinger added the comment: I concur with your plan. BTW, have you checked to see what Java and C# do? -- ___ Python tracker ___ ___

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

2009-03-18 Thread Eric Smith
New submission from Eric Smith : I think the way leading zero padding is handled for int and float by format's 'n' code is a bug. >>> import locale >>> locale.setlocale(locale.LC_ALL, 'en_US.UTF8') 'en_US.UTF8' >>> format(12345, '010n') '12,345' >>> format(12345, '09n') '00012,345' >>> forma