Skip to content

Conversation

@jbremer
Copy link

@jbremer jbremer commented Apr 8, 2013

Fixes the following sample code.

import ast
import codegen
import sys

eval(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 free to 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