Re:

2007-04-06 Thread C.L.
James Stroud jstroud at mbi.ucla.edu writes: C.L. wrote: I was looking for a function or method that would return the index to the first matching element in a list. ... ... __please don't be overly defensive__ ... The amount of typing wasted to defend design decisions such as this can

index method only for mutable sequences??

2007-04-05 Thread C.L.
I was looking for a function or method that would return the index to the first matching element in a list. Coming from a C++ STL background, I thought it might be called find. My first stop was the Sequence Types page of the Library Reference (http://docs.python.org/lib/typesseq.html); it wasn't