[issue7483] str.format behaviour changed from Python 2.6

2009-12-12 Thread Eric Smith
Eric Smith added the comment: This is a duplicate of issue 6902. I have a patch for that in the works. -- resolution: -> duplicate status: open -> closed ___ Python tracker ___

[issue7483] str.format behaviour changed from Python 2.6

2009-12-11 Thread Ezio Melotti
Ezio Melotti added the comment: The problem seems to be in Objects/stringlib/formatter.h at line 472: if (format->fill_char == '0') spec->n_min_width = format->width - n_non_digit_non_padding; else spec->n_min_width = 0; I tried to comment out that part and leave just th

[issue7483] str.format behaviour changed from Python 2.6

2009-12-11 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- assignee: -> eric.smith nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue7483] str.format behaviour changed from Python 2.6

2009-12-11 Thread Jeong-Min Lee
New submission from Jeong-Min Lee : In Python 2.6, >>> '{0:0<30}'.format(1) '10' >>> '{0:-<30}'.format(1) '1-' In Python 2.7a / 3.1, >>> '{0:0<30}'.format(1) '01' >>> '{0:-<30}'.format(1) '1---