Created
June 8, 2016 14:31
-
-
Save kmohrf/2a1f566fcbb19fe1ecaf9f95c3994d9d to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env python | |
# encoding: utf-8 | |
def weirdness_happens(foo = []): | |
foo.append(1) | |
return foo | |
print(weirdness_happens()) # [1] | |
print(weirdness_happens()) # [1, 1] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment