8000 bpo-43216: Remove @asyncio.coroutine by illia-v · Pull Request #26369 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-43216: Remove @asyncio.coroutine #26369

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Jul 1, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update the news entry
  • Loading branch information
illia-v committed May 26, 2021
commit c1df1f0e614d78171988b6c3678007f8d5154cb5
7 changes: 4 additions & 3 deletions Doc/whatsnew/3.11.rst
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,10 @@ Deprecated
Removed
=======

* The :func:`asyncio.coroutine` :term:`decorator` enabling legacy
generator-based coroutines to be compatible with async/await code.
Use :keyword:`async def` instead.
* The :func:`@asyncio.coroutine <asyncio.coroutine>` :term:`decorator` enabling
legacy generator-based coroutines to be compatible with async/await code.
The function has been deprecated since Python 3.8 and the removal was
initially scheduled for Python 3.10. Use :keyword:`async def` instead.
(Contributed by Illia Volochii in :issue:`43216`.)


Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
Remove the :func:`asyncio.coroutine` :term:`decorator` enabling legacy
generator-based coroutines to be compatible with async/await code. Patch by
Illia Volochii.
Remove the :func:`@asyncio.coroutine <asyncio.coroutine>` :term:`decorator`
enabling legacy generator-based coroutines to be compatible with async/await
code. The function has been deprecated since Python 3.8 and the removal was
initially scheduled for Python 3.10. Patch by Illia Volochii.
0