csvoss / onelinerizer

Shamelessly convert any Python 2 script into a terrible single line of code

Home Page:http://www.onelinerizer.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Every variable is global

andersk opened this issue · comments

This test case incorrectly outputs 2 when onelined.

x = 1
def foo():
    x = 2
foo()
print x

Perhaps the symtable module can help compute the correct scopes?

Largely fixed by #36. There are still some subtle issues that I’ll file as separate bugs.