mir ist sehr wohl bewusst, dass es einen Bugtracker gibt, ich bin mir jedoch hiermit nicht ganz sicher.
Da will ich lieber dieses Forum füllen statt einen falschen Eintrag im Bugtracker zu hinterlassen.
Mir ist folgende Unstimmigkeit aufgefallen, ich denke Code verdeutlicht das am Besten:
Code: Alles auswählen
b = b'\x00\x01'
print(repr(b[-1]))
print(b[-1] == b'\x01')
print(repr(b[:]))
Code: Alles auswählen
Python 2.7 (r27:82500, Oct 20 2010, 03:28:42)
[GCC 4.5.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> b = b'\x00\x01'
>>> print(repr(b[-1]))
'\x01'
>>> print(b[-1] == b'\x01')
True
>>> print(repr(b[:]))
'\x00\x01
Code: Alles auswählen
Python 3.1.2 (r312:79147, Oct 4 2010, 12:45:09)
[GCC 4.5.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> b = b'\x00\x01'
>>> print(repr(b[-1]))
1
>>> print(b[-1] == b'\x01')
False
>>> print(repr(b[:]))
b'\x00\x01'
Danke, aco