Message325339
> 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. |
|
Date |
User |
Action |
Args |
2018-09-14 09:53:54 | mbussonn | set | recipients:
+ mbussonn, njs, yselivanov, willingc, minrk |
2018-09-14 09:53:53 | mbussonn | set | messageid: <1536918833.96.0.956365154283.issue34616@psf.upfronthosting.co.za> |
2018-09-14 09:53:53 | mbussonn | link | issue34616 messages |
2018-09-14 09:53:53 | mbussonn | create | |
|