Issue2015

classification
Title: returning itertools.imap() from __iter__ method no longer works
Type: behaviour Severity: normal
Components: Library Versions: Jython 2.7
process
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.

Files
File name Uploaded Description Edit Remove
minimal-example.py dsh, 2013-02-16.20:46:20
Messages
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!
History
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