slice's indices() method

Fredrik Lundh fredrik at pythonware.com
Mon Oct 30 05:34:32 EST 2006


smichr at gmail.com wrote:

> Is there any reason not to change the behavior of the indices() method
> so it gives indices that can be used in range (to give indices
> corresponding to elements that would be extracted by a given slice)
> *and* used as arguments for slices so that the slice with the new
> indices (obtained from the indices() method) would extract the same
> elements as the original slice from whence they were obtained?

and this month's "absolutely most pointless of all pointless proposals" 
award goes to...

</F>




More information about the Python-list mailing list