[issue46866] bytes class extension with slices

Serhiy Storchaka report at bugs.python.org
Sat Feb 26 07:08:24 EST 2022


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

Yes, it is consistent with all of builtin types. If you want to return a different type, override __getitem__().

----------
nosy: +serhiy.storchaka
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46866>
_______________________________________


More information about the Python-bugs-list mailing list