I've read about new Python "keywords" async
and await
. However they are neither really keywords nor reserved in a namespace.
>>> import keyword
>>> keyword.iskeyword("async")
False
>>> async
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'async' is not defined
In the example I would expect True
and SyntaxError
for a keyword.
So, what exactly is async
in Python? How it works?