[issue30321] format() function prints fillchar as backslash twice
Zachary Ware
report at bugs.python.org
Tue May 9 15:49:19 EDT 2017
Zachary Ware added the comment:
>>> result = '{:\^3}'.format('R')
>>> result
'\\R\\'
>>> print(result)
\R\
>>> print("backslash (\\) is escaped by another backslash in str's repr")
backslash (\) is escaped by another backslash in str's repr
----------
nosy: +zach.ware
resolution: -> not a bug
stage: -> resolved
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30321>
_______________________________________
More information about the Python-bugs-list
mailing list