I think you have to use 2.2 to use iterators.
 
On 9/22/07, Konstantinos Pachopoulos <kostaspaxos@yahoo.gr> wrote:

Hi Charlie,
this is what i get:

kostas@sqo-oss:~/workspace/SVNLog2DB$ jython
Jython 2.1 on java1.5.0_10 (JIT: null)
Type "copyright", "credits" or "license" for more information.
>>> l=[]
>>> iter(l)
Traceback (innermost last):
File "<console>", line 1, in ?
NameError: iter

> Hi Konstantinos,
>
> iter is a builtin so you shouldn't have to import it, and it seems fine for me:
>
> Jython 2.2 on java1.5.0_07
> Type "copyright", "credits" or "license" for more information.
>
>>>> l = []
>>>> iter(l)
>>>>
> <sequenceiter object 1>
>
>>>> iter
>>>>
> <built-in function iter>
>
>
> What's the stack trace you're getting?  Could you provide some more
> context on the code where it's failing?
>
> Charlie
>
>


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Jython-users mailing list
Jython-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jython-users