New submission from svs <[email protected]>:
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 <[email protected]>
<https://bugs.python.org/issue44146>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com