[Python-Dev] New PEP

Victor Stinner victor.stinner at gmail.com
Thu Mar 22 00:57:55 CET 2012


> My proposed syntax is x(:)

Change the Python syntax is not a good start. You can already
experiment your idea using the slice() type.

> We would have to do something like this.
> sum(x[:-20:2])

Do you know the itertools module? It looks like itertools.islice().

Victor


More information about the Python-Dev mailing list