[Python-checkins] cpython (3.5): docs: Document ASYNC/AWAIT tokens (issue #25580)

yury.selivanov python-checkins at python.org
Thu Dec 17 18:26:58 EST 2015


https://hg.python.org/cpython/rev/aa79b2a5b2e1
changeset: 99609:aa79b2a5b2e1
branch: 3.5
parent: 99607:dcd2e66b8082
user: Yury Selivanov <yselivanov at sprymix.com>
date: Thu Dec 17 18:26:41 2015 -0500
summary:
 docs: Document ASYNC/AWAIT tokens (issue #25580)
Initial patch by SilentGhost
files:
 Doc/library/token.rst | 6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/Doc/library/token.rst b/Doc/library/token.rst
--- a/Doc/library/token.rst
+++ b/Doc/library/token.rst
@@ -97,10 +97,16 @@
 RARROW
 ELLIPSIS
 OP
+ AWAIT
+ ASYNC
 ERRORTOKEN
 N_TOKENS
 NT_OFFSET
 
+ .. versionchanged:: 3.5
+ Added :data:`AWAIT` and :data:`ASYNC` tokens. Starting with
+ Python 3.7, "async" and "await" will be tokenized as :data:`NAME`
+ tokens, and :data:`AWAIT` and :data:`ASYNC` will be removed.
 
 .. seealso::
 
-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /