← 输入框|bugs.python.org|刷新

➜

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

作者 mbussonn
收信人 mbussonn, minrk, njs, willingc, yselivanov
日期 2018-09-14.09:53:53
SpamBayes Score -1.0
Marked as misclassified 是
Message-id <1536918833.96.0.956365154283.issue34616@psf.upfronthosting.co.za>
In-reply-to
内容
> A utility to check whether an AST requires async mode should be fairly straightforward.

Here is one case we forgot in IPython apparently :

In [1]: x = 1
   ...: def f():
   ...:     nonlocal x
   ...:     x = 10000

This is not detected as a syntax error, but considered as asyn, we took an approach that prefer false positive (try to run invalid syntax as async) than false negative (reject valid async-code). Add this to the test suite for this feature.
历史
日期 用户 动作 参数
2018-09-14 09:53:54mbussonn修改recipients: + mbussonn, njs, yselivanov, willingc, minrk
2018-09-14 09:53:53mbussonn修改messageid: <1536918833.96.0.956365154283.issue34616@psf.upfronthosting.co.za>
2018-09-14 09:53:53mbussonn链接issue34616 messages
2018-09-14 09:53:53mbussonn创建