R. David Murray added the comment:

Agreed, but that is a design decision that was taken long ago (regretted by 
more than a few but defended by others).  You can find a number of discussions 
of this by searching the python-dev archives, including some more recent 
discussions on possibilities for lessening the pain, but I don't remember if 
any of those turned into real proposals.

For now, you can find some helpers in six, or you can write your code using 
slice notation (b'abc'[1:2] == b'b').

----------
nosy: +r.david.murray
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue22549>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to