Last active
August 29, 2015 14:08
-
-
Save alexandre/7cefb1c2ed621fc9eba2 to your computer and use it in GitHub Desktop.
numeric types are immutable
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| >>> 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