Tagged articles
2 articles
Page 1 of 1
Byte Quality Assurance Team
Byte Quality Assurance Team
Oct 13, 2021 · Fundamentals

Understanding Python Object Assignment, Mutable vs. Immutable Types, and Shallow vs. Deep Copying

This article provides a comprehensive guide to Python's memory management and object assignment mechanisms, clearly explaining the differences between mutable and immutable objects, direct assignment, shallow copying, and deep copying through practical code examples and visual diagrams.

Data StructuresImmutable ObjectsPython Programming
0 likes · 7 min read
Understanding Python Object Assignment, Mutable vs. Immutable Types, and Shallow vs. Deep Copying
MaGe Linux Operations
MaGe Linux Operations
Mar 6, 2017 · Fundamentals

Understanding Python Assignment, Shallow Copy, and Deep Copy

This article explains how Python handles object assignment, the differences between shallow and deep copying using the copy module, and special cases such as immutable types and tuples, providing clear examples and visual output to avoid common pitfalls.

copy moduledeep copyobject-assignment
0 likes · 6 min read
Understanding Python Assignment, Shallow Copy, and Deep Copy