Skip to content

Instantly share code, notes, and snippets.

@alexandre
Last active August 29, 2015 14:08
Show Gist options
  • Select an option

  • Save alexandre/7cefb1c2ed621fc9eba2 to your computer and use it in GitHub Desktop.

Select an option

Save alexandre/7cefb1c2ed621fc9eba2 to your computer and use it in GitHub Desktop.
numeric types are immutable
>>> x = 10
>>> id(x)
140612933020512
>>> x += 1
>>> id(x)
140612933020544
>>> # numeric types are immutable...
...
>>> id(10)
140612933020512
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment