list.index

s.index(x[, i[, j]]) return smallest k such that s[k] == x and `i <= k < j`

Raises ValueError when x is not found in s. When a negative index is passed as the second or third parameter to the [[list.index] method, the list length is added, as for slice indices. If it is still negative, it is truncated to zero, as for slice indices.

Changed in version 2.3: Previously, list.index didn’t have arguments for specifying start and stop positions.

 

A Django site. this page was rendered by a django application in 0.02s 2010-12-16 17:13:32.191886. hosted by webfaction.