Created
June 17, 2016 13:24
-
-
Save orkaa/a3f02a0a4b77cbadae0a19df1de4fbf6 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
>>> def a(foo=[]): | |
... foo.append('bar') | |
... print foo | |
... | |
>>> a() | |
['bar'] | |
>>> a() | |
['bar', 'bar'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment