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

Eric V. Smith report at bugs.python.org
Thu Sep 11 09:23:31 CEST 2014


Eric V. Smith added the comment:

I think this would need to be implemented by adding bytes.__format__. I can't think of a way to make it work on bytes-like objects in general.

----------

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


More information about the Python-bugs-list mailing list