Possible Duplicate:
What can you use Python generator functions for?
I tried to read about python generators but did not understand much about the concept as to what we can do with generators, I am new to python
please let me know
Thank you
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The presentation here explains generators very well:
http://www.dabeaz.com/generators/index.html
I have yet to find a use for the more advanced pipelining stuff, but I use the general technique all the time to parse logfiles.