[issue22385] Define a binary output formatting mini-language for *.hex()

Nick Coghlan report at bugs.python.org
Wed Sep 17 12:56:55 CEST 2014


Nick Coghlan added the comment:

Retitled the issue and made it depend on issue 9951.

I now think it's better to tackle this more like strftime and have a method that accepts of particular custom formatting mini-language (in this case, the new hex() methods proposed in issue 9951), and then also support that mini-language in the __format__() method.

It would likely need a PEP to decide on the exact details of the formatting.

----------
dependencies: +introduce bytes.hex method
title: Allow 'x' and 'X' to accept bytes-like objects in string formatting -> Define a binary output formatting mini-language for *.hex()

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


More information about the Python-bugs-list mailing list