]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
PySequence_Index(): set exception when object is not found in
authorBarry Warsaw <barry@python.org>
Wed, 18 Dec 1996 19:32:18 +0000 (19:32 +0000)
committerBarry Warsaw <barry@python.org>
Wed, 18 Dec 1996 19:32:18 +0000 (19:32 +0000)
commitf90eddef5d3554136623aa81a91187640bf0e92c
tree6fb9e05ca10c4f08e6f640f7c2a5bf8126ad1d58
parent2e6313930eab9dbadf6ffb5afed341a809f2c5c5
PySequence_Index(): set exception when object is not found in
sequence, otherwise

operator.indexOf([4, 3, 2, 1], 9) would raise a SystemError!

Note: it might be wise to double check all these functions.  I haven't
done that yet.
Objects/abstract.c