[Tutor] I am terribly confused about "generators" and "iterators".. Help me

Asrarahmed Kadri ajkadri at googlemail.com
Fri Oct 27 13:30:33 CEST 2006


Hi Folks,

What are generators and iterators...??And why are they are needed..??

I can do my stuff with a 'for' or a 'while' loop.. so why do I need an
ITERATOR..?

And what is a generator ..? I did try to read about these two things on the
web, but still I AM CONFUSED.

To be honest, I am used to the nice and lucid style of the wonderful people
on this forum.. :)-

Regards,
Asrarahmed Kadri


-- 
To HIM you shall return.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20061027/83b8a2c7/attachment.htm 


More information about the Tutor mailing list