list index()

Bruno Desthuilliers bruno.42.desthuilliers at wtf.websiteburo.oops.com
Thu Aug 30 09:42:04 CEST 2007


zzbbaadd at aol.com a écrit :
> What's with the index() function of lists throwing an exception on not
> found? Let's hope this is rectified in Python 3. If nothing else, add
> a function that doesn't throw an exception. There are a million
> situations where you can have an item not be in a list and it is not
> an exception situation.

What's with using your brain instead of whining ?




More information about the Python-list mailing list