Created
August 16, 2012 18:09
-
-
Save stober/3372224 to your computer and use it in GitHub Desktop.
Small Python Hate Snippets
This file contains hidden or 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
""" | |
Things I hate about Python. | |
""" | |
import distutils | |
try: | |
print distutils.sysconfig.get_python_lib() | |
except: | |
print "Failed call!" | |
import distutils.sysconfig | |
print distutils.sysconfig.get_python_lib() | |
first = [0,0,1] | |
second = first # whoops | |
second[0] = 1 | |
print first | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment