[issue32166] Drop python 3.4 code from asyncio.coroutines

Andrew Svetlov report at bugs.python.org
Wed Nov 29 04:46:45 EST 2017


New submission from Andrew Svetlov <andrew.svetlov at 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 <report at bugs.python.org>
<https://bugs.python.org/issue32166>
_______________________________________


More information about the Python-bugs-list mailing list