Misleading description of [i:j:k] slicing?

Christos TZOTZIOY Georgiou tzot at sil-tec.gr
Fri Aug 22 02:58:28 EDT 2003


On Thu, 21 Aug 2003 18:56:38 +0100, rumours say that Raoul Gough
<RaoulGough at yahoo.co.uk> might have written:

>> Basically, it's 0 <= n < abs(i-j)//k, right?
>
>I didn't know about // (silly me) but it looks like a good way to
>go. Your alternative formulation still doesn't give the right
>behaviour for negative values of k. e.g.

Yes indeed, I hadn't negative values in mind.
-- 
TZOTZIOY, I speak England very best,
Microsoft Security Alert: the Matrix began as open source.




More information about the Python-list mailing list