07.01.14 18:12, Steven D'Aprano написав(ла):
In Python 2.7, if you have a chunk of binary data, you can easily do this:data = b'\xE1\xE2\xE3\xE4' data[0] == b'\xE1' and it returns True just as expected.
data[0] == b'\xE1'[0] works as expected in both Python 2.7 and 3.x. -- https://mail.python.org/mailman/listinfo/python-list