Issue2264

classification
Title: defaultdict's get method has wrong behavior in Jython 2.5.3
Type: behaviour Severity: normal
Components: Library Versions: Jython 2.5
Milestone:
process
Status: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: Nosy List: kaneg, zyasoft
Priority: Keywords:

Created on 2015-01-30.12:25:57 by kaneg, last changed 2015-02-02.20:07:16 by zyasoft.

Messages
msg9467 (view) Author: Kane Gong (kaneg) Date: 2015-01-30.12:25:57
For code below:
from collections import defaultdict

a = defaultdict(list)
print a.get('a')

Only Jython 2.5.3 will return [], CPython 2.5, CPython 2.7 and Jython 2.7b3 will return None.
msg9470 (view) Author: Jim Baker (zyasoft) Date: 2015-02-02.20:07:15
We are not going to backport the fixes for defaultdict to 2.5, sorry about that, but this requires too many changes.

2.7 will be coming out shortly.
History
Date User Action Args
2015-02-02 20:07:16zyasoftsetstatus: open -> closed
resolution: wont fix
messages: + msg9470
nosy: + zyasoft
2015-01-30 12:26:15kanegsettitle: defaultdict's get method has wrong behavior -> defaultdict's get method has wrong behavior in Jython 2.5.3
2015-01-30 12:25:57kanegcreate