[Moshe] > I imagined something like > > try: > raise RestartableException, continuation.current_continuation() > except RestartableException, ex: > # correct the problem > ex.saved_continuation() > > IOW, just put the continuation in the exception object. > I don't think you can use generators/coroutines to simulate something > like this You can make the exception handler into a separate coroutine -- then no reusable continuations are needed. The coroutine can repair the exception and resume the other. --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