[Python-ideas] Possible new slice behaviour? Was ( Negative slice discussion.)

Oscar Benjamin oscar.j.benjamin at gmail.com
Tue Nov 5 14:32:46 CET 2013


On 5 November 2013 10:51, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
> Ron Adam wrote:
>>
>>     >>> s[:100, trimi, reversei]
>
>
> -1. This conflicts with the convention of indexing multi-dimensional
> data structures using comma-separated expressions.

Agreed. Numpy users are the biggest consumers of slicing. Any proposal
to improve slicing had better improve it for numpy as well which means
it should work in multidimensional slicing context - regardless of
whether numpy is in the stdlib.


Oscar


More information about the Python-ideas mailing list