Skip to content

Instantly share code, notes, and snippets.

@neale
Created October 8, 2015 23:48
Show Gist options
  • Save neale/c1da0f79782aca200e05 to your computer and use it in GitHub Desktop.
Save neale/c1da0f79782aca200e05 to your computer and use it in GitHub Desktop.
Python minification for OS1
for i in range(3):
with open('./txt-file-'+str(i)+'.txt', 'wb+') as f:
for x in {f.write, __import__('__builtin__').__dict__['print']}:
x(str([__import__('random').__dict__['choice'](map(chr,range(97, 123))) for n in range(10)]))
print __import__('random').__dict__['randint'](1, 43) * __import__('random').__dict__['randint'](1, 43)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment