array next pointer

Anjanesh Lekshminarayanan mail at anjanesh.net
Tue Mar 17 12:12:51 CET 2009


>>> a = ['cat','dog','elephant']
>>> a.next()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'list' object has no attribute 'next'
>>>
Is there something that imtates PHP's next() ? (http://php.net/next)



More information about the Python-list mailing list