DEV Community

Bas Terwijn
Bas Terwijn

Posted on

Python Mutability

  • Changing a value of immutable type results in an automatic copy
  • Changing a value of mutable type causes it to mutate in place

🧠 Understand the Python Data Model better using memory_graph
🎥 Watch the explainer on Python Mutability

Python Mutability

Top comments (0)