Python Internals

Objects and references, identity, shallow and deep copying, reference counting, garbage collection and bytecode.

4 notes

Notes

Python

Shallow and Deep Copy

Assignment shares, a shallow copy duplicates one level, and a deep copy duplicates everything. Choosing the wrong one is one of the most common source...

Read more