[issue34808] bytes[0] != bytes[0:1]

2018-09-26 Thread ucyo
ucyo added the comment: Thank you for the answer. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___

[issue34808] bytes[0] != bytes[0:1]

2018-09-26 Thread Geoffrey Spear
Geoffrey Spear added the comment: Indexing bytes giving an int is a feature. Some might argue it's a bad feature, but it was done on purpose. -- nosy: +geoffreyspear ___ Python tracker

[issue34808] bytes[0] != bytes[0:1]

2018-09-26 Thread ucyo
New submission from ucyo : 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