No strides? (was Re: List mapping?)

Fredrik Lundh effbot at telia.com
Fri Apr 14 20:38:08 CEST 2000


David Smith <drs at labs.agilent.com> wrote:
> Why aren't strides implemented for slices of lists and tuples?  I would
> have liked to suggest
>
> map( None, a[0::2], a[1::2] )

someone has to write the code...

feel free to send your favourite implementation to
patches at python.org (see python.org for more info
on how to submit patches).

</F>





More information about the Python-list mailing list