Message 87758 - Python tracker

Message87758

Author pitrou
Recipients benjamin.peterson, georg.brandl, jmillikin, pitrou, rhettinger
Date 2009-05-14.19:33:37
SpamBayes Score 5.334409e-07
Marked as misclassified No
Message-id <1242329736.5477.18.camel@localhost>
In-reply-to <1242329170.29.0.830372942786.issue5945@psf.upfronthosting.co.za>
Content
> Why did the list implementation get changed in Py3.x?  Is it now
> necessary for any subscripting type to put the same method in both the
> sequence methods and mapping methods?  Was this change necessary?

I think it's a case of foolish consistency. In py3k there are no opcodes
dedicated to slicing anymore, instead the slice object is passed to the
mapping's getitem method.
History
Date User Action Args
2009-05-14 19:33:41pitrousetrecipients: + pitrou, georg.brandl, rhettinger, benjamin.peterson, jmillikin
2009-05-14 19:33:38pitroulinkissue5945 messages
2009-05-14 19:33:38pitroucreate