msg293976 - (view) |
Author: Jelle Zijlstra (JelleZijlstra) *  |
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) *  |
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) *  |
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) *  |
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) *  |
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) *  |
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) *  |
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) *  |
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) *  |
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. |
|
|