[Python-Dev] An ability to specify start and length of slices
Guido van Rossum
guido at python.org
Fri Jun 4 00:21:49 EDT 2004
> Many times I find myself asking for a slice of a specific length, rather
> than a slice with a specific end. I suggest to add the syntax
> object[start:>length] (or object[start:>length:jump]), beside the
> existing syntax.
Feel free to continue to argue for this, but I'm -1, and that usually
kills a proposal dead. I doubt that you'll be able to get enough
influential people on python-dev to rally for your proposal; but I'm
sure they will explain to you why your syntax is unpythonic and the
feature is so minor as to be unneeded.
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-Dev