Message1209
Given a collection, I am unable to iterate twice on the
same collection.
atom 17:03:36 ~> jython
Jython 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:
... print i
...
1
>>> for u in set:
... print u
...
Traceback (innermost last):
File "<console>", line 1, in ?
ValueError: iterator indices must be consecutive ints
starting at 0
|
|
Date |
User |
Action |
Args |
2008-02-20 17:17:32 | admin | link | issue1544224 messages |
2008-02-20 17:17:32 | admin | create | |
|