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 <rep...@bugs.python.org>
<http://bugs.python.org/issue22385>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to