STINNER Victor added the comment: > Should we check that code is exact list?
Do you mean a tuple for indexgroup? Yeah, it also seems worth it. I just checked: --- class Tuple(tuple): def __getitem__(self, index): return 9 a = Tuple([1, 2, 3]) print(a[0]) --- Output: --- 9 --- ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue28765> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com