Author mbussonn
Recipients mbussonn, minrk, njs, willingc, yselivanov
Date 2018-09-14.09:53:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1536918833.96.0.956365154283.issue34616@psf.upfronthosting.co.za>
In-reply-to
Content
> 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.
History
Date User Action Args
2018-09-14 09:53:54mbussonnsetrecipients: + mbussonn, njs, yselivanov, willingc, minrk
2018-09-14 09:53:53mbussonnsetmessageid: <1536918833.96.0.956365154283.issue34616@psf.upfronthosting.co.za>
2018-09-14 09:53:53mbussonnlinkissue34616 messages
2018-09-14 09:53:53mbussonncreate