is there a better way to check an array?

Peter Hansen peter at
Fri Sep 2 19:38:00 CEST 2005

Fredrik Lundh wrote:
> Peter Hansen wrote:
>>Probably because at one point lists didn't even have the index() method,
>>and when it was suggested and (I believe) Raymond H. added it
> the list "index" method has been in Python since, like, forever (early 1991,
> according to CVS, which means that it was added about two years before
> the first 1.0 alpha was made public...)

D'oh!  My apologies:  I was misremembering the addition of the optional 
"start" and "stop" arguments to the existing list() method, which 
happened in June 2003 (SF #754014 at 


More information about the Python-list mailing list