Skip to content

Instantly share code, notes, and snippets.

@andersx
Created August 10, 2013 11:27
Show Gist options
  • Save andersx/6200096 to your computer and use it in GitHub Desktop.
Save andersx/6200096 to your computer and use it in GitHub Desktop.
What bothers me about python
def implementation_1(P):
P = [1, 1]
def implementation_a(P):
P[0] = 1
P[1] = 1
P = [0, 0]
print P
implementation_1(P)
print P
implementation_a(P)
print P
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment