[Async-sig] subclassing CancelledError

2017-12-02 Thread Chris Jerdonek
Hi, I want to ask how people feel about the following. If you raise a subclass of CancelledError from within a task and then call task.result(), CancelledError is raised rather than the subclass. Here is some code to illustrate: class MyCancelledError(CancelledError): pass async def rai

[Async-sig] async await as basic paradigm - relation to delimited continuations ?

2017-12-02 Thread Asmodehn Shade
Hi everyone, I have been working on distributed programming for a while now, however I was away from python land, and didnt get into the twisted/tornado/asyncio train until few years ago. While writing asyncio code and exploring different abstract computing paradigm (my recent hobby seems to be e