[issue13811] In str.format an incorrect alignment option doesn't make fill char and onself absent

2012-01-18 Thread Eric V. Smith
Eric V. Smith e...@trueblade.com added the comment: I'm not sure what you're saying here. Is it that 'xx' should be ignored? The documentation says that 'xx' isn't fill and alignment, not that they don't exist. If they're not fill and alignment, then the format string is in error. --

[issue13811] In str.format an incorrect alignment option doesn't make fill char and onself absent

2012-01-18 Thread Boštjan Mejak
Boštjan Mejak bostjan.me...@gmail.com added the comment: Please fix the error message to invalid format specifier -- nosy: +Retro ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13811 ___

[issue13811] In str.format an incorrect alignment option doesn't make fill char and onself absent

2012-01-18 Thread py.user
py.user port...@yandex.ru added the comment: Eric V. Smith wrote: I'm not sure what you're saying here. Is it that 'xx' should be ignored? yes, the description says they are assumed absent -- ___ Python tracker rep...@bugs.python.org

[issue13811] In str.format an incorrect alignment option doesn't make fill char and onself absent

2012-01-18 Thread Eric V. Smith
Eric V. Smith e...@trueblade.com added the comment: The only error is the text of the ValueError. I'll look into fixing that. These characters will not be ignored. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13811

[issue13811] In str.format an incorrect alignment option doesn't make fill char and onself absent

2012-01-18 Thread py.user
py.user port...@yandex.ru added the comment: If the second character of format_spec is not a valid alignment option, then it is assumed that both the fill character and the alignment option are absent. what does it mean ? -- ___ Python tracker

[issue13811] In str.format an incorrect alignment option doesn't make fill char and onself absent

2012-01-18 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: py.user: The format string must always match the grammar, which is just above the paragraph that you quoted: [[fill]align][sign][#][0][width][,][.precision][type] Thus, if fill and align are absent, it does not mean that you can

[issue13811] In str.format an incorrect alignment option doesn't make fill char and onself absent

2012-01-17 Thread py.user
New submission from py.user port...@yandex.ru: http://docs.python.org/py3k/library/string.html#format-specification-mini-language The fill character can be any character other than ‘{‘ or ‘}’. The presence of a fill character is signaled by the character following it, which must be one of the

[issue13811] In str.format an incorrect alignment option doesn't make fill char and onself absent

2012-01-17 Thread py.user
Changes by py.user port...@yandex.ru: -- components: +Interpreter Core type: - behavior versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13811 ___

[issue13811] In str.format an incorrect alignment option doesn't make fill char and onself absent

2012-01-17 Thread Eric V. Smith
Eric V. Smith e...@trueblade.com added the comment: What is the expected output, and why? I think the error message might be incorrect, possibly it should be invalid format specifier. -- nosy: +eric.smith ___ Python tracker rep...@bugs.python.org

[issue13811] In str.format an incorrect alignment option doesn't make fill char and onself absent

2012-01-17 Thread py.user
py.user port...@yandex.ru added the comment: absent fill char and align option: '{0:10d}'.format(1) ' 1' -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13811 ___