]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
`index_property` catches IndexError as well as KeyError
authorJeong YunWon <jeong@youknowone.org>
Sun, 3 Jul 2016 12:45:15 +0000 (21:45 +0900)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 5 Jul 2016 22:24:47 +0000 (18:24 -0400)
commit5a2d2f47d6681ce3085f4d4e4a8d384eb442c96f
tree05dd2d817e6a0339ecaaba9db7f635b0b91a3d4d
parent7c8c124dbe71602daed471e43af45051c5626c09
`index_property` catches IndexError as well as KeyError

It was raising AttributeError for key accessing in dict,
but raising IndexError for index accessing in array.

Change-Id: I58a2252a9e8d7f78cabcefcbe7223a4f3a729115
doc/build/changelog/changelog_11.rst
lib/sqlalchemy/ext/indexable.py
test/ext/test_indexable.py