Weird Python Integers Note: all of this code was run on my machine using Python 3.6.1. Not everything will work the same if you test using Python 2. That is suprising! It turns out that all “small integers” with the same value point to the same memory. We can use the Python built-in function id which returns a value you can think of as a memory address to investigate.