Last active
August 29, 2015 13:57
-
-
Save 17twenty/9661270 to your computer and use it in GitHub Desktop.
Force Python to compile to pyc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
python -m compileall stackBlown.py | |
# You could also do this programatically | |
# >>> import py_compile | |
# >>> py_compile.compile('stackBlown.py') | |
# | |
# Note that you need to use Python to run the pyc file as it's not an executable | |
# | |
# The dis module would even let you pull the resultant bytecode back out again! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment