Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment: In Python 2 things are more complex than in Python 3. You have to define __getslice__ for handling the case of literal slices.
This was fixed in Python 3. ---------- nosy: +serhiy.storchaka _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33322> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com