Skip to content

Fix incorrect Binary Operation Code Generation - #4

Open
jbremer wants to merge 1 commit into
andreif:masterfrom
jbremer:master
Open

Fix incorrect Binary Operation Code Generation#4
jbremer wants to merge 1 commit into
andreif:masterfrom
jbremer:master

Conversation

@jbremer

Copy link
Copy Markdown

Fixes the following sample code.

importastimportcodegenimportsyseval(codegen.to_source(ast.parse('sys.stdout.write(("a" + "b")[:1])')))

As this currently eval()'s the following code.

sys.stdout.write('a'+'b'[:1])

Cheers,
Jurriaan

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@jbremer