|
|
|
|
|
by webexcess
4867 days ago
|
|
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. |
|