New submission from Andrew Svetlov <andrew.svet...@gmail.com>:

Dropped lines are never executed by supported Python versions.
The code exists for sake of keeping the same code base for stdlib asyncio and 
third-party library with the same name.
Since Python 3.4 asyncio is a part of stdlib, asyncio on PyPI is not 
supported/updated for 2.5 years.
Removing is safe.

The change keeps backward compatibility with old libraries written for `yield 
from` syntax, both awaiting old-styled coroutines and yielding from new styles 
async functions are supported.

async def f():
    ...
yield from f()

@asyncio.coroutine
def g():
    ...
await g()

Thus no regressions/deprecations, just removing non-public never executed 
implementation details.

----------
assignee: asvetlov
components: Library (Lib), asyncio
messages: 307214
nosy: asvetlov, yselivanov
priority: normal
severity: normal
status: open
title: Drop python 3.4 code from asyncio.coroutines
versions: Python 3.6, Python 3.7

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32166>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to