Issue 30406: async and await should be keywords in 3.7 (original) (raw)

Created on 2017-05-19 21:27 by JelleZijlstra, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 1669 merged JelleZijlstra,2017-05-19 21:29
PR 6143 merged JelleZijlstra,2018-03-18 16:35
PR 6145 merged miss-islington,2018-03-18 16:54
Messages (11)
msg293976 - (view) Author: Jelle Zijlstra (JelleZijlstra) * (Python committer) Date: 2017-05-19 21:27
According to PEP 492, async and await should be full keywords in Python 3.7, but this hasn't been implemented yet. I have a patch ready that I'll submit as a PR soon.
msg293994 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2017-05-20 03:10
+1 These words are here to stay. That said, Guido needs to explicitly sign-off on any new language keywords.
msg293997 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2017-05-20 04:18
Yes, I signed off on this when I approved that PEP. On May 19, 2017 20:10, "Raymond Hettinger" <report@bugs.python.org> wrote: > > Raymond Hettinger added the comment: > > +1 These words are here to stay. > > That said, Guido needs to explicitly sign-off on any new language keywords. > > ---------- > assignee: -> gvanrossum > nosy: +gvanrossum, rhettinger > > _______________________________________ > Python tracker <report@bugs.python.org> > <http://bugs.python.org/issue30406> > _______________________________________ >
msg294003 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2017-05-20 05:40
It's time to remove Yury's hacks from the parser and get a sane syntax ;-) I agree to make async and await real keywords!
msg303793 - (view) Author: Yury Selivanov (yselivanov) * (Python committer) Date: 2017-10-06 03:24
New changeset ac317700ce7439e38a8b420218d9a5035bba92ed by Yury Selivanov (Jelle Zijlstra) in branch 'master': bpo-30406: Make async and await proper keywords (#1669) https://github.com/python/cpython/commit/ac317700ce7439e38a8b420218d9a5035bba92ed
msg303794 - (view) Author: Yury Selivanov (yselivanov) * (Python committer) Date: 2017-10-06 03:28
Thanks a lot, Jelle!
msg305549 - (view) Author: Pierre Quentel (quentel) * Date: 2017-11-04 09:19
According to PEP 492, async and await should have been deprecated in 3.5 and 3.6, but I don't think they have been : await = 1 def f(async=True): ... don't raise any deprecation warning in 3.6. Since version 3.7 will break existing code with a SyntaxError, could it be possible to have something explicit in the SyntaxError message for these new keywords, for instance SyntaxError : 'async' is a keyword I don't speack C so I can't provide a patch, sorry.
msg305634 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2017-11-06 11:20
> (...) don't raise any deprecation warning in 3.6. python3 requires -Wd to display DeprecationWarning: https://mail.python.org/pipermail/python-dev/2017-November/150149.html Yury Selivanov: "We had PendingDeprecationWarning for async/await names in 3.5, and DeprecationWarning in 3.6."
msg314046 - (view) Author: Łukasz Langa (lukasz.langa) * (Python committer) Date: 2018-03-18 16:54
New changeset f64aae46da292f71f6be750026cd052362e066bc by Łukasz Langa (Jelle Zijlstra) in branch 'master': Revert "bpo-30406: Make async and await proper keywords (#1669)" (GH-6143) https://github.com/python/cpython/commit/f64aae46da292f71f6be750026cd052362e066bc
msg314051 - (view) Author: miss-islington (miss-islington) Date: 2018-03-18 19:15
New changeset a90df5085b51e8bb9de1c04c408bbef42ce6cbc3 by Miss Islington (bot) in branch '3.7': Revert "bpo-30406: Make async and await proper keywords (GH-1669)" (GH-6143) https://github.com/python/cpython/commit/a90df5085b51e8bb9de1c04c408bbef42ce6cbc3
msg336783 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2019-02-27 23:41
Sadly if I get my way this will all be reverted -- see https://bugs.python.org/issue35975. I'm working on a PR.
History
Date User Action Args
2022-04-11 14:58:46 admin set github: 74591
2019-02-27 23:41:58 gvanrossum set messages: +
2018-03-18 19:15:54 miss-islington set nosy: + miss-islingtonmessages: +
2018-03-18 16:54:47 miss-islington set pull_requests: + <pull%5Frequest5903>
2018-03-18 16:54:36 lukasz.langa set nosy: + lukasz.langamessages: +
2018-03-18 16:35:13 JelleZijlstra set pull_requests: + <pull%5Frequest5900>
2017-11-06 11:20:34 vstinner set messages: +
2017-11-04 09:19:57 quentel set nosy: + quentelmessages: +
2017-10-06 03:28:00 yselivanov set status: open -> closedtype: behaviormessages: + resolution: fixedstage: resolved
2017-10-06 03:24:51 yselivanov set messages: +
2017-05-20 05:40:31 vstinner set messages: +
2017-05-20 04🔞11 gvanrossum set messages: +
2017-05-20 03:10:48 rhettinger set assignee: gvanrossummessages: + nosy: + rhettinger, gvanrossum
2017-05-19 21:29:23 JelleZijlstra set pull_requests: + <pull%5Frequest1763>
2017-05-19 21:27:41 JelleZijlstra create