mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
docs: Document ASYNC/AWAIT tokens (issue #25580)
Initial patch by SilentGhost
This commit is contained in:
parent
b84ef715b8
commit
3dc74bf703
1 changed files with 6 additions and 0 deletions
|
@ -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::
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue