0

I found this very nice tutorial on what Python generators are and how they can be used:

http://www.neotitans.com/resources/python-generators-tutorial.html

I had a difficult time with the other tutorials out there because, funnily enough, they seem to assume that you already know what generators are before they try to teach you about it (???).

They key concept this tutorial taught me was that a function with the "yield" keyword in it is NOT the generator per se, but rather that it RETURNS one. Other tutorials seem to miss emphasizing this very important point.

2
Contributors
1
Reply
4
Views
9 Years
Discussion Span
Last Post by vegaseat
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.