[docs] [issue9780] fill character cannot be '{'

Eric Smith report at bugs.python.org
Mon Sep 6 17:09:03 CEST 2010

Eric Smith <eric at trueblade.com> added the comment:

Sorry to respond late.

The reason for this is that the parsing of the string (as delimited by "{" and "}") happens before the results are then interpreted as format specifiers. There's no way around it, short of the parser understanding every object's formatting language, which is of course not possible. It could be special cased for string, int, and float format specifiers, but that doesn't make much sense.

I think the doc change is good.


Python tracker <report at bugs.python.org>

More information about the docs mailing list