Python Objects: Mutable vs Immutable

Not all python objects handle changes the same way. Some objects are mutable, meaning they can be altered. Others are immutable; they cannot be changed but rather return new objects when attempting to update. What does this mean when writing python code? This post will talk about (a) the mutability of common data types and (b) instances where mutability matters. Mutability of Common Types The following are some immutable objects:
Read more...