[Python-Dev] An ability to specify start and length of slices

Delaney, Timothy C (Timothy) tdelaney at avaya.com
Fri Jun 4 01:38:18 EDT 2004


Guido van Rossum wrote:

>> 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.

It already was explained when this came up on c.l.py ...

Tim Delaney



More information about the Python-Dev mailing list