[issue28827] f-strings: format spec should not accept unicode escapes

Eric V. Smith report at bugs.python.org
Mon Nov 28 20:24:24 EST 2016


Eric V. Smith added the comment:

Specifically, see: https://www.python.org/dev/peps/pep-0498/#format-specifiers

str.format() also works this way:
>>> '{0:02{1}}'.format(10, an_x)
'0A'

----------

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


More information about the Python-bugs-list mailing list