Message1210

Author fgagnon2
Recipients
Date 2006-08-21.21:32:05
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=1580846

Clearly, the iterator returned for the 'for' loop is never
resetted where it should be.  One can force a new iterator
to be created by using the following (unelegant) work around:

atom 17:30:00 ~> jython
fJython 2.1 on java1.5.0_07 (JIT: null)
Type "copyright", "credits" or "license" for more information.
>>>from java.util import HashSet
>>> set = HashSet()
>>> set.add(1)
1
>>> for i in set.iterator():
...    print i
... 
1
>>> for u in set.iterator():
...    print u
... 
1
History
Date User Action Args
2008-02-20 17:17:32adminlinkissue1544224 messages
2008-02-20 17:17:32admincreate