title: Why are integers immutable in Python?
body: <p>I understand the differences between mutable and immutable objects in Python. I have read many posts discussing the differences. However, I have not read anything regarding WHY integers are immutable objects.</p>
  <p>Does there exist a reason for this? Or is the answer &quot;that's just how it is&quot;?</p>
  <p>Edit: I am getting prompted to 'differentiate' this question from other questions as it seems to be a previously asked question. However, I believe what I'm asking is more of a philosophical Python question rather than a technical Python question.</p>
  <p>It appears that 'primitive' objects in Python (i.e. strings, booleans, numbers, etc.) are immutable. I've also noticed that derived data types that are made up of primitives (i.e. dicts, lists, classes) are mutable.</p>
  <p>Is that where the line is drawn whether or not an object is mutable? Primitive vs derived?</p>