Peter Otten wrote:

> def __iter__(self):
>     for i in range(len(self)):
>         return self[i]

That should of course be 'yield', not 'return' 


_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to