Issue1038

classification
Title: Custom KeyErrors raised from __getitem__ are swallowed
Type: behaviour Severity: normal
Components: Core Versions:
Milestone:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: leosoto, pjenvey
Priority: Keywords:

Created on 2008-05-25.02:23:13 by leosoto, last changed 2008-06-07.22:44:09 by pjenvey.

Files
File name Uploaded Description Edit Remove
getitem_and_custom_key_errors.patch leosoto, 2008-05-25.02:23:10
Messages
msg3200 (view) Author: Leonardo Soto (leosoto) Date: 2008-05-25.02:22:54
Patch with test and proposed fix is attached.

The fix overrides __getitem__ on *Derived, because the default
__getitem__ calls __finditem__ which, by definition, must swallow
LookupErrors.
msg3234 (view) Author: Philip Jenvey (pjenvey) Date: 2008-06-07.22:44:09
applied in r4555
History
Date User Action Args
2008-06-07 22:44:09pjenveysetstatus: open -> closed
resolution: fixed
messages: + msg3234
nosy: + pjenvey
2008-05-25 02:23:14leosotocreate