[issue13811] In str.format, if invalid fill and alignment are specified, the text of the ValueError message is misleading.

py.user report at bugs.python.org
Thu Jan 19 01:00:02 CET 2012


py.user <port139 at yandex.ru> added the comment:

Stefan Krah wrote:
> After it has been established that [[fill]align] is not present you have to match the *whole string* with the rest of the grammar

I think, there should be a text in the documentation: "if the alignment optiont is invalid, it will be raised a ValueError exception"

thanx for the mailing list

----------

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


More information about the Python-bugs-list mailing list