Nick Coghlan added the comment:

Re-using an existing minilanguage to mean something completely different 
wouldn't be a good idea.

Whether or not we should add any bytes specific features for this at all is 
also still an open question, as one of the points raised in the latest 
python-ideas thread is that this may be better handled as a general purpose 
string splitting method that breaks the string up into fixed size units, which 
can then be rejoined with an arbitrary delimeter. For example:


    >>> digit_groups = b'\xb9\x01\xef'.hex().splitgroups(2)
    >>> ' '.join(digit_groups)
    'b9 01 ef'

----------

_______________________________________
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