Dear python.org documentation team,
The method that should be defined under Iterator Class should be __next__() or next().
Problem: In case __next__() method is defined python under user defined Iterator class, interpreter gives following error:
TypeError: instance has no next() method
Resolution: The problem is resolved when __next__() is renamed to next().PS: My version of python Python 2.7.3Regards,Vishal