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 2017-12-11 15:04 by yselivanov. 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
2017-12-11 15:04:05yselivanovsetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2017-12-11 15:03:50yselivanovsetmessages: + msg308048
2017-12-11 00:00:47yselivanovsetkeywords: + patch
stage: patch review
pull_requests: + pull_request4685
2017-12-10 23:57:47yselivanovsetmessages: + msg308007
2017-12-10 23:57:22yselivanovsetnosy: + asvetlov
2017-12-10 23:57:08yselivanovcreate