[issue44146] Format string fill not handling brace char

2021-06-09 Thread Martin Panter
Martin Panter added the comment: Another workaround: >>> '{:{brace}>10d}'.format(5, brace='{') '{5' -- nosy: +martin.panter ___ Python tracker ___

[issue44146] Format string fill not handling brace char

2021-05-19 Thread Eric V. Smith
Eric V. Smith added the comment: Since this is working as designed, I'm going to close it. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue44146] Format string fill not handling brace char

2021-05-16 Thread Eric V. Smith
Eric V. Smith added the comment: In the future, if you get an error, please tell us what the error is. It makes responding to bugs easier. '{::>10d'.format(5) Gives me an error with 3.10: >>> '{::>10d'.format(5) Traceback (most recent call last): File "", line 1, in ValueError: unmatched

[issue44146] Format string fill not handling brace char

2021-05-16 Thread svs
New submission from svs : Format strings and f-strings don't seem to handle brace characters as a fill character. E.g. '{::>10d'.format(5) => ':5" (as expected) '{:{>10d'.format(5) => error. Expect: '{5" trying {{ escape does not work either. '{:{{>10d'.format(5) => error.