https://www.reddit.com/r/Python/comments/1mehrc0/why_pythons_deepcopy_is_surprisingly_slow_and/
https://www.reddit.com/r/Python/comments/1mehrc0/why_pythons_deepcopy_is_surprisingly_slow_and/
Listen to the full episode at realpython.com/podcasts/rpp... or in your preferred podcast client.
Happy Pythoning!
Listen to the full episode at realpython.com/podcasts/rpp... or in your preferred podcast client.
Happy Pythoning!
www.freecodecamp.org/news/how-to-...
www.freecodecamp.org/news/how-to-...
create deepcopy of objects: ❌
serialize and de-serialize objects in json: ✔️
create deepcopy of objects: ❌
serialize and de-serialize objects in json: ✔️
Can you predict the output of this Python code without running it? 🤔
This one tests your understanding of Python’s deepcopy() and object identity.
Think carefully and share your answer in the comments! 👇
www.clcoding.com/2026/08/pyth...
Can you predict the output of this Python code without running it? 🤔
This one tests your understanding of Python’s deepcopy() and object identity.
Think carefully and share your answer in the comments! 👇
www.clcoding.com/2026/08/pyth...
- Solution: memory-graph.com#codeurl=http...
- Explanation: github.com/bterwijn/mem...
The Solution link uses 𝗺𝗲𝗺𝗼𝗿𝘆_𝗴𝗿𝗮𝗽𝗵: github.com/bterwijn/mem...
to visualize code execution.
#PythonDev #memory_graph #ShallowCopy #DeepCopy
- Solution: memory-graph.com#codeurl=http...
- Explanation: github.com/bterwijn/mem...
The Solution link uses 𝗺𝗲𝗺𝗼𝗿𝘆_𝗴𝗿𝗮𝗽𝗵: github.com/bterwijn/mem...
to visualize code execution.
#PythonDev #memory_graph #ShallowCopy #DeepCopy
github.com/schwehr/bitv...
github.com/schwehr/bitv...
www.freecodecamp.org/news/how-to-...
www.freecodecamp.org/news/how-to-...
github.com/myclabs/Dee...
github.com/myclabs/Dee...
Also when a seemingly in-place modification is not really in-place, but a reallocation (e.g. `+=` operator on a string, which is immutable). 1/2
Also when a seemingly in-place modification is not really in-place, but a reallocation (e.g. `+=` operator on a string, which is immutable). 1/2
Part two of this took a ton of debugging for me because I wasn't using a deepcopy in Python and ended up changing data in place that I shouldn't have.
Part two of this took a ton of debugging for me because I wasn't using a deepcopy in Python and ended up changing data in place that I shouldn't have.
Today I learned:
🔁 Copy references in Python — shallow vs deep copy. copy() ≠ deepcopy()
🔢 Numbers in Python: int, float, complex.
Side quest: practiced Mongoose schemas
#100DaysOfCode #Python #MERN #DevLog #CodeNewbie
Today I learned:
🔁 Copy references in Python — shallow vs deep copy. copy() ≠ deepcopy()
🔢 Numbers in Python: int, float, complex.
Side quest: practiced Mongoose schemas
#100DaysOfCode #Python #MERN #DevLog #CodeNewbie
Learned a very humbling lesson about the difference between deepcopy and shallowcopy in python. 🫠
Learned a very humbling lesson about the difference between deepcopy and shallowcopy in python. 🫠