Author vstinner
Recipients ezio.melotti, mrabarnett, python-dev, serhiy.storchaka, vstinner
Date 2016-11-23.10:23:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1479896599.13.0.332248434841.issue28765@psf.upfronthosting.co.za>
In-reply-to
Content
> 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
---
History
Date User Action Args
2016-11-23 10:23:19vstinnersetrecipients: + vstinner, ezio.melotti, mrabarnett, python-dev, serhiy.storchaka
2016-11-23 10:23:19vstinnersetmessageid: <1479896599.13.0.332248434841.issue28765@psf.upfronthosting.co.za>
2016-11-23 10:23:19vstinnerlinkissue28765 messages
2016-11-23 10:23:18vstinnercreate