From: Yury Selivanov Date: Thu, 17 Dec 2015 23:26:41 +0000 (-0500) Subject: docs: Document ASYNC/AWAIT tokens (issue #25580) X-Git-Tag: v3.6.0a1~895^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3dc74bf703d433a4060f6911ecfbc98be7ba267f;p=thirdparty%2FPython%2Fcpython.git docs: Document ASYNC/AWAIT tokens (issue #25580) Initial patch by SilentGhost --- diff --git a/Doc/library/token.rst b/Doc/library/token.rst index 88fb38bc1dd1..c6bfa354d9a7 100644 --- a/Doc/library/token.rst +++ b/Doc/library/token.rst @@ -97,10 +97,16 @@ The token constants are: 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::