[New-bugs-announce] [issue17705] Fill Character cannot be \0
Julian Berman
report at bugs.python.org
Fri Apr 12 18:54:55 CEST 2013
New submission from Julian Berman:
The docs say:
"The fill character can be any character other than ‘{‘ or ‘}’."
http://docs.python.org/dev/library/string.html#format-specification-mini-language
But:
>>> "{0:\x01>8.2f}".format(12)
'\x01\x01\x0112.00'
whereas:
>>> "{0:\x00>8.2f}".format(12)
' 12.00'
----------
components: Interpreter Core
messages: 186653
nosy: Julian
priority: normal
severity: normal
status: open
title: Fill Character cannot be \0
type: behavior
versions: Python 2.7, Python 3.2, Python 3.3, Python 3.4
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17705>
_______________________________________
More information about the New-bugs-announce
mailing list