On Sat, 20 Jan 2018 12:57:45 +0200, Serhiy Storchaka wrote: > Just `end` instead of `end+1`.
Oops! > And it is safer to use `bytes.decode(obj[start:end], 'latin1')` or > `str(obj[start:end], 'latin1')` instead of > `obj[start:end].decode('latin1')`. Just for the case if obj has > overridden decode() method. > > Otherwise LGTM. Thanks. -- Steve -- https://mail.python.org/mailman/listinfo/python-list