array next pointer

Tim Chase python.list at tim.thechases.com
Tue Mar 17 13:23:26 CET 2009


> not sure from what version, but certainly in 2.6 and on, you can improve
> the syntax slightly:
> 
>>>> b = iter(a)
>>>> b.next()

This syntax (also my preferred version) has been available since 
at least 2.3

-tkc





More information about the Python-list mailing list