Re: slice's indices() method

2006-10-30 Thread smichr
Fredrik Lundh wrote: > [EMAIL PROTECTED] 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 sl

Re: slice's indices() method

2006-10-30 Thread Fredrik Lundh
[EMAIL PROTECTED] 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 n