[issue32364] Add AbstractFuture and AbstractTask

2017-12-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: Let's postpone it to Python 3.8 -- versions: +Python 3.8 -Python 3.7 ___ Python tracker ___ ___ Py

[issue32364] Add AbstractFuture and AbstractTask

2017-12-18 Thread Yury Selivanov
Yury Selivanov added the comment: +1, let's do it. I'd add a new module - 'asyncio.abc' and put them both there (as well as asyncio.isfuture() function). -- ___ Python tracker __

[issue32364] Add AbstractFuture and AbstractTask

2017-12-18 Thread Andrew Svetlov
New submission from Andrew Svetlov : Asyncio supports custom future and task by third-party loop implementation. Abstract classes for them is needed. AbstractTask should not have set_result()/set_exception() maybe, is this case abstract base is needed (AbstractPromise, AbstractCancellableValue