News for hackers. Stuff that matters.
Re:Python Generators in Depth by webexcess on Tuesday February 26, 2013 @09:52PM (#5290218)
Yes, your code is the same as the first example generator with a single yield in a loop.

The same conversion for the later examples with multiple yield statements, try: except: or try: finally: will be much hairier, though.

There are no comments on this comment yet.