[issue42889] Incorrect behavior after ast node visits

2021-07-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: We usually used 'fixed' for 'fixed in this issue'. In any case, 'Resolution' is secdondary to 'Status'. -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker

[issue42889] Incorrect behavior after ast node visits

2021-07-04 Thread Xinmeng Xia
Xinmeng Xia added the comment: This crash cannot be reproduced again on the master branch of CPython. It seems that this bug has been fixed. Should we close this issue and mark it as "fixed"? -- ___ Python tracker

[issue42889] Incorrect behavior after ast node visits

2021-01-15 Thread Xinmeng Xia
Xinmeng Xia added the comment: Thank you for your kindly explanations! The output of the first program in msg384799 behaves as expected from the view of AST compiling. Yes,I see now. But for the second example in msg384879, the behaviors are inconsistent between old Python version(3.6,3.7,3.

[issue42889] Incorrect behavior after ast node visits

2021-01-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: The parser is not involved here. The transformed code is *not* equivalent to "1=2; print(1)" because you replace 'a' with the string '1', not the int 1. The result is to transform "globals()['a']=2; print(globals()['a'])" to "globals()['1']=2; print(glob