[issue22549] bug in accessing bytes, inconsistent with normal strings and python 2.7

2017-02-22 Thread Marco Buttu
Changes by Marco Buttu : -- pull_requests: +203 ___ Python tracker ___ ___

[issue22549] bug in accessing bytes, inconsistent with normal strings and python 2.7

2014-10-03 Thread Kevin Hendricks
New submission from Kevin Hendricks: Hi, I am working on porting my ebook code from Python 2.7 to work with both Python 2.7 and Python 3.4 and have found the following inconsistency I think is a bug ... KevinsiMac:~ kbhend$ python3 Python 3.4.1 (v3.4.1:c0e311e010fc, May 18 2014, 00:54:21)

[issue22549] bug in accessing bytes, inconsistent with normal strings and python 2.7

2014-10-03 Thread R. David Murray
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

[issue22549] bug in accessing bytes, inconsistent with normal strings and python 2.7

2014-10-03 Thread Kevin Hendricks
Kevin Hendricks added the comment: Thanks for letting me know this was expected behaviour. I see the same issue holds true while using: for c in b'0123456789': print(ord(c)) I ended up using slices nearly everyplace. Still ran into iterator issues. Horrible hack really. I think I