Serhiy Storchaka <storchaka+cpyt...@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 <rep...@bugs.python.org> <https://bugs.python.org/issue46866> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com