]> granicus.if.org Git - python/commit
[].index() raises ValueError if the value is not in the list, so only
authorFred Drake <fdrake@acm.org>
Fri, 11 May 2001 19:52:03 +0000 (19:52 +0000)
committerFred Drake <fdrake@acm.org>
Fri, 11 May 2001 19:52:03 +0000 (19:52 +0000)
commitef4cdad0905c55d921d899cb8b91e58ec6beeb80
treee8e68f3657e9151e5ad56737bdeb874defadaa7a
parent7def25641035d42478c5e8b98364dac5cc0504c0
[].index() raises ValueError if the value is not in the list, so only
catch that instead of using a bare except clause.
Demo/tix/samples/Control.py