Skip to content

Instantly share code, notes, and snippets.

@rca
Created July 20, 2012 21:57
Show Gist options
  • Select an option

  • Save rca/3153544 to your computer and use it in GitHub Desktop.

Select an option

Save rca/3153544 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
def foo(l=[]):
print l
l.append('hi')
foo()
foo()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment