Comment Comment by webexcess 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. parent webexcess 13 years ago
The same conversion for the later examples with multiple yield statements, try: except: or try: finally: will be much hairier, though.