New submission from ucyo <[email protected]>:
bytes('sdf', 'UTF8')[0] != bytes('sdf', 'UTF8')[0:1] # FALSE
'sdf'[0] != 'sdf'[0:1] # TRUE
Is this a feature or bug. I would have expected the same behaviour.
----------
components: Library (Lib)
messages: 326446
nosy: ucyo
priority: normal
severity: normal
status: open
title: bytes[0] != bytes[0:1]
type: behavior
versions: Python 3.6
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue34808>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com