[issue12546] str.format cannot fill with \x00 char

Gavin Andresen report at bugs.python.org
Wed Jul 13 08:58:06 CEST 2011


New submission from Gavin Andresen <gavinandresen at gmail.com>:

This gives me "foo   " instead of expected "foo\x00\x00\x00" :

"{0:\x00<6}".format('foo')

----------
components: Library (Lib)
messages: 140225
nosy: Gavin.Andresen
priority: normal
severity: normal
status: open
title: str.format cannot fill with \x00 char
type: behavior
versions: Python 2.7

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


More information about the Python-bugs-list mailing list