Pythonのasyncが予約語になった経緯
タグ
#Python
#todo
プログラミング
ページを作った理由
asyncが予約語(reserved keyword)になった関係で壊れるライブラリを結構見た
何故このタイミングで?という疑問が出た
リンク集
参考になると思われるリンクを集めておく
https://docs.python.org/3/whatsnew/3.7.html
Backwards incompatible syntax changes:
async and await are now reserved keywords.
理由に!ついて!触れられて!ない!
PEP 530 -- Asynchronous Comprehensions | Python.org
In principle, asynchronous generator expressions are allowed in any context. However, in Python 3.6, due to async and await soft-keyword status, asynchronous generator expressions are only allowed in an async def function. Once async and await become reserved keywords in Python 3.7, this restriction will be removed.
reserved keywordにしないと解決できない問題があった?
というかそのものが書いてあるかな、これは?
壊れたライブラリ群
Python 3.7 support · Issue #3143 · scrapy/scrapy
code:壊れた箇所.py
def write(self, data, async=False):