Issue 32272: Remove asyncio.async function (original) (raw)

Issue32272

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

This issue has been migrated to GitHub: https://github.com/python/cpython/issues/76453

classification

Title: Remove asyncio.async function
Type: behavior Stage: resolved
Components: asyncio Versions: Python 3.7

process

Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: asvetlov, yselivanov
Priority: normal Keywords: patch

Created on 2017-12-10 23:57 by yselivanov, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 4784 merged yselivanov,2017-12-11 00:00
Messages (3)
msg308006 - (view) Author: Yury Selivanov (yselivanov) * (Python committer) Date: 2017-12-10 23:57
asyncio.async() is a deprecated alias for asyncio.ensure_future(). Since Python 3.7, async and await are proper keywords, and it is no longer possible to use the function. I.e. both 'from asyncio import async' and 'asyncio.async(...)' are a SyntaxError.
msg308007 - (view) Author: Yury Selivanov (yselivanov) * (Python committer) Date: 2017-12-10 23:57
The function has been deprecated since Python 3.4.4.
msg308048 - (view) Author: Yury Selivanov (yselivanov) * (Python committer) Date: 2017-12-11 15:03
New changeset 9edad3c7011ccab0a66a065933abebf3288cf1a1 by Yury Selivanov in branch 'master': bpo-32272: Remove asyncio.async() function. (#4784) https://github.com/python/cpython/commit/9edad3c7011ccab0a66a065933abebf3288cf1a1
History
Date User Action Args
2022-04-11 14:58:55 admin set github: 76453
2017-12-11 15:04:05 yselivanov set status: open -> closedresolution: fixedstage: patch review -> resolved
2017-12-11 15:03:50 yselivanov set messages: +
2017-12-11 00:00:47 yselivanov set keywords: + patchstage: patch reviewpull_requests: + <pull%5Frequest4685>
2017-12-10 23:57:47 yselivanov set messages: +
2017-12-10 23:57:22 yselivanov set nosy: + asvetlov
2017-12-10 23:57:08 yselivanov create

Supported by The Python Software Foundation,
Powered by Roundup

Copyright © 1990-2022, Python Software Foundation
Legal Statements