[Python-Dev] Built in objects supporting slices

Guido van Rossum guido@python.org
Sun, 28 Apr 2002 09:20:29 -0400

> At the moment, built in objects such as lists don't support the slice
> notaton l[a:b:c]. Would there be support for including this in Python
> 2.3? If so, what would be the necessary procedure? Would this require a
> PEP?
> Alex Martelli has offered to do the code, if someone will champion the
> work. I'm happy to do this, but I don't have commit privileges, so it
> would require someone else to actually commit any changes. I presume
> that the correct approach would be to submit the changes as a patch to
> SourceForge?

Yes.  No PEP is needed, but I'm -0 on the idea -- I don't see what use
there is for this besides theoretical neatness; I'm sure it
complicates a lot of code.

IOW What's the use case?

--Guido van Rossum (home page: http://www.python.org/~guido/)