[New-bugs-announce] [issue44146] Format string fill not handling brace char

svs report at bugs.python.org
Sun May 16 05:32:23 EDT 2021


New submission from svs <snegavs at outlook.com>:

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.

The same goes for '}'. f-strings have a similar issue.

----------
components: Interpreter Core
messages: 393735
nosy: snegavs
priority: normal
severity: normal
status: open
title: Format string fill not handling brace char
type: behavior
versions: Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44146>
_______________________________________


More information about the New-bugs-announce mailing list