Jython

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

Supported by Python Software Foundation,
Powered by Roundup

AltStyle によって変換されたページ (->オリジナル) /