Serhiy Storchaka added the comment: Even list suffers from this bug if slicing step is not 1.
class X:
def __index__(self):
del a[:]
return 1
a = [0]
a[:X():2]
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue27867>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
