Title: returning itertools.imap() from __iter__ method no longer works
Type: behaviour Severity: normal
Components: Library Versions: Jython 2.7
Status: open Resolution:
Dependencies: Superseder:
Assigned To: fwierzbicki Nosy List: dsh, fwierzbicki
Priority: high Keywords:

Created on 2013-02-16.20:46:21 by dsh, last changed 2013-02-20.00:28:40 by fwierzbicki.

File name Uploaded Description Edit Remove dsh, 2013-02-16.20:46:20
msg7688 (view) Author: (dsh) Date: 2013-02-16.20:46:20
In Jython 2.5 and CPython 2.7, a class' __iter__ method can return itertools.imap(f, l) and this object can be processed in a for loop.  In Jython 2.7 the loop does not execute any iterations.  The attached script demonstrates this (and is also compatible with CPython 3 for comparison there).
msg7689 (view) Author: Frank Wierzbicki (fwierzbicki) Date: 2013-02-17.19:48:54
Ouch, thanks for the bug report!
Date User Action Args
2013-02-20 00:28:40fwierzbickisetversions: + Jython 2.7, - 2.7a2
2013-02-17 19:48:54fwierzbickisetpriority: high
assignee: fwierzbicki
messages: + msg7689
nosy: + fwierzbicki
2013-02-16 20:46:21dshcreate