[Python-Dev] Built in objects supporting slices

Raymond Hettinger python@rcn.com
Sun, 28 Apr 2002 13:10:09 -0400

> From: Paul Moore <gustav@morpheus.demon.co.uk>
> 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?

I would be happy to help on this one either in the design stage, code
or writing the unittests and docs.

Maybe we should also address the str/getitem/slice bug
www.python.org/sf/473985 and kill two birds with one stone (or tie two
swallows to one coconut or some such).

Raymond Hettinger