On Wed, 29 Aug 2007 23:44:33 -0700, zzbbaadd wrote: > 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.
Write such a function yourself, it is quite easy after all. I very seldom use the `list.index()` method. What do your millions situations look like? Maybe there is a better data structure than lists for those situations!? Ciao, Marc 'BlackJack' Rintsch -- http://mail.python.org/mailman/listinfo/python-list