Ezio Melotti <ezio.melo...@gmail.com> 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 the "spec->n_min_width = 0;" and '{0:0<30}'.format(1) returned the correct result. Even if it showed that the problem is there, this is probably the wrong solution. ---------- nosy: +ezio.melotti priority: -> high versions: +Python 3.2 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue7483> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com