[docs] [issue25580] async and await missing from token list
Yury Selivanov
report at bugs.python.org
Thu Dec 17 18:19:03 EST 2015
Yury Selivanov added the comment:
> My only background here is via the tokenize module, which seems to currently behave as described in <https://www.python.org/dev/peps/pep-0492/#transition-plan>: async and await are either NAME tokens (like ordinary identifiers and other reserved keywords) outside a coroutine definition, but they become special ASYNC and AWAIT tokens inside a coroutine.
Exactly. And in 3.7 they will be NAME tokens in any context. That's why I'm reluctant to document them atm.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25580>
_______________________________________
More information about the docs
mailing list