[Phillip J. Eby] > Yeah, I'd ideally like to see __try__, __except__, __else__, and > __finally__ methods, matching the respective semantics of those clauses in > a try/except/finally block. What's your use case for adding this complexity? I'm going for simple here unless there's a really strong use case. Anyway, a wrapped generator wrapper can't do with all those distinctions unless we augment the generator somehow ("continue EXPR" would suffice). (Your decorator is equivalent to mine, but I don't like creating a new class each time.) -- --Guido van Rossum (home page: http://www.python.org/~guido/)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4