Closed bburan closed 1 year ago
Closing in favor of #bytecode/4
The enaml compiler is doing something wrong at https://github.com/nucleic/enaml/blob/main/enaml/core/code_generator.py#L547 since before the cfg modification the CFG round trip properly
Good news I believe I have a fix for this. It turns out I need a tiny fix in bytecode and a fix in enaml. I hope to land both by the end of the week.
Great, thank you for fixing this!
On Wed, May 24, 2023 at 11:39 AM Matthieu Dartiailh < @.***> wrote:
Closed #521 https://github.com/nucleic/enaml/issues/521 as completed via #528 https://github.com/nucleic/enaml/pull/528.
— Reply to this email directly, view it on GitHub https://github.com/nucleic/enaml/issues/521#event-9331435687, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACPSQWOUGYXYBVJATIZGDLXHZIVTANCNFSM6AAAAAAW6ZF5OM . You are receiving this because you modified the open/close state.Message ID: @.***>
The following code block in any Enaml file:
Results in the following traceback:
Other variations such as:
and:
are fine. It seems the "as" triggers an error. I have only seen this on Python 3.11. I believe Python 3.10 is fine.