[Tutor] slice lists and slicing syntax questions
Kent Johnson
kent37 at tds.net
Sat Oct 13 16:47:45 CEST 2007
Michael Langford wrote:
> When you call [] on an object, it calls __getitem__The definition for
> getitem is __getitem__(self,key), where key can be an integer or a slice
> object.
Or a tuple of integers/slices.
> You may want to try to write a PEP for python 3000. So much is being
> changed with that, you may get it in.
The deadline for PEPs for Python 3 has long passed - it was in April IIRC.
Kent
More information about the Tutor
mailing list