Skip to content

Instantly share code, notes, and snippets.

@alvesjnr
Created February 21, 2012 15:51
Show Gist options
  • Save alvesjnr/1877114 to your computer and use it in GitHub Desktop.
Save alvesjnr/1877114 to your computer and use it in GitHub Desktop.
#I'm using python 2.7.2
>>> def a(b=[]):
... b.append('end')
... return b
...
>>> a()
['end']
>>> a()
['end', 'end']
>>> a()
['end', 'end', 'end']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment