Issue1707681

classification
Title: allow anything that has an iterator() method to be iterable
Type: Severity: normal
Components: None Versions:
Milestone:
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: Nosy List: cgroves, crotwell
Priority: normal Keywords: patch

Created on 2007-04-25.20:09:08 by crotwell, last changed 2007-04-26.07:41:03 by cgroves.

Files
File name Uploaded Description Edit Remove
Iterable_iterator.diff crotwell, 2007-04-25.20:09:08
Iterable_iterator2.diff crotwell, 2007-04-25.20:36:06
Messages
msg2699 (view) Author: Philip Crotwell (crotwell) Date: 2007-04-25.20:09:08
Allow any object with an iterator() method to be iterated. This one method is the Iterable interface in 1.5, but calling it by reflection works in 1.4.
msg2700 (view) Author: Charlie Groves (cgroves) Date: 2007-04-25.20:15:58
This will throw a ClassCastException if object has an iterator method that returns something other than Iterator.  It should check for that and return null if it isn't actually an Iterator.  Other than that, looks good.
msg2701 (view) Author: Philip Crotwell (crotwell) Date: 2007-04-25.20:36:08

Yep, fixed in new patch
File Added: Iterable_iterator2.diff
msg2702 (view) Author: Charlie Groves (cgroves) Date: 2007-04-26.07:41:03
Committed in r3190.
History
Date User Action Args
2007-04-25 20:09:08crotwellcreate