]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[].index() raises ValueError if the value is not in the list, so only
authorFred Drake <fdrake@acm.org>
Fri, 11 May 2001 19:44:55 +0000 (19:44 +0000)
committerFred Drake <fdrake@acm.org>
Fri, 11 May 2001 19:44:55 +0000 (19:44 +0000)
commit7def25641035d42478c5e8b98364dac5cc0504c0
treecd2ca6d5d03beb225a51abece42368a0666317ed
parenta2133339ff2e2e4d66b491f9d023976eadfdb8df
[].index() raises ValueError if the value is not in the list, so only
catch that instead of using a bare except clause.
Demo/tix/tixwidgets.py