Issue2088

classification
Title: cannot override defaultdict.__missing__
Type: Severity: normal
Components: Library Versions: Jython 2.7
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: bgr, indra
Priority: Keywords:

Created on 2013-09-15.14:07:53 by bgr, last changed 2014-02-01.07:41:52 by indra.

Files
File name Uploaded Description Edit Remove
keydefaultdict.py bgr, 2013-09-15.14:07:52
Messages
msg8117 (view) Author: bgr (bgr) Date: 2013-09-15.14:07:52
When subclassing defaultdict, overridden __missing__ method is ignored. See the attached example code which demonstrates the issue.
msg8236 (view) Author: Indra Talip (indra) Date: 2014-02-01.07:41:52
Pull request at https://bitbucket.org/jython/jython/pull-request/26/fix-defaultdict-so-that-for-derived/diff fixes defaultdict so __missing__ in subclasses is called correctly.
History
Date User Action Args
2014-02-01 07:41:53indrasetnosy: + indra
messages: + msg8236
2013-09-15 14:07:53bgrcreate