Skip to content

Instantly share code, notes, and snippets.

@vtemian
Created May 4, 2015 15:53
Show Gist options
  • Save vtemian/19535a1aad05e8f47162 to your computer and use it in GitHub Desktop.
Save vtemian/19535a1aad05e8f47162 to your computer and use it in GitHub Desktop.
simple mutable
def foobar(arg_string="abc", arg_list=[]):
print arg_string, arg_list
arg_string = arg_string + "xyz"
arg_list.append("F")
for i in range(4):
foobar()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment