[issue22385] Allow 'x' and 'X' to accept bytes-like objects in string formatting

STINNER Victor report at bugs.python.org
Thu Sep 11 09:25:21 CEST 2014


STINNER Victor added the comment:

> ".precision": chunks output, placing a space after every <precision> bytes

I dislike this option. There is already "%.<precision>s" in Python 2 and Python 3 (and printf of the C language) which truncates the string.

If you need such special output, please write your own function.

----------
nosy: +haypo

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


More information about the Python-bugs-list mailing list