#deepcopy
actually we've had a deepCopy in js for a bit now, its called structuredClone, it even handles cyclical objects. We thank @surma.dev for that one 🙏🙏🙏
April 16, 2025 at 9:24 PM
Why Python's deepcopy() is surprisingly slow (and better alternatives)

https://www.reddit.com/r/Python/comments/1mehrc0/why_pythons_deepcopy_is_surprisingly_slow_and/
August 17, 2025 at 9:15 AM
.deepcopy() woes and fixes

Listen to the full episode at realpython.com/podcasts/rpp... or in your preferred podcast client.

Happy Pythoning!
February 22, 2026 at 2:20 AM
📰🐍 Get the best Python links of the week: PyCoder’s Weekly Issue #709: deepcopy(), JIT, REPL Tricks, and More (Nov. 18, 2025) pycoders.com/issues/709
PyCoder’s Weekly | Issue #709
deepcopy(), JIT, REPL Tricks, and More
pycoders.com
November 18, 2025 at 7:46 PM
🐍📩 Pycoders Weekly (Issue 709) — deepcopy(), JIT, REPL Tricks, and More

buff.ly/prHAlBK
November 20, 2025 at 1:58 PM
The copy module is a built-in module in Python that you can use to copy objects. And in this tutorial, Sara explains how it works. You'll learn about its copy() function, when to use deepcopy(), and how to copy mutable vs immutable objects.
www.freecodecamp.org/news/how-to-...
April 18, 2025 at 8:02 PM
python be like

create deepcopy of objects: ❌
serialize and de-serialize objects in json: ✔️
September 24, 2024 at 9:52 PM
🐍 Python Coding Challenge — Day 1229!

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...
August 20, 2026 at 8:15 AM
An exercise to help build the right mental model for Python data.
- 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
September 16, 2026 at 11:38 PM
I replaced the custom BitVector.deep_copy() method with Python's copy.deepcopy() and the resulting deepcopy is better than 400x faster. Yikes and wahoo!

github.com/schwehr/bitv...
refactor(deepcopy): switch deep_copy() usages to standard copy.deepco… · schwehr/bitvector-modern@ec9fa3d
…py() - Implement __deepcopy__ on BitVector to directly clone underlying array/list buffers in C instead of stringifying to ASCII and re-parsing. - Update deep_copy() method to delegate directly t...
github.com
July 4, 2026 at 11:27 PM
Astropy tweeps: I am trying to make a *copy* of a fits image, mess with the copy, and not mess with the original. But the prescribed .copy(), or copy=True in cutout2D, aren’t making true copies - they’re also changing the original. .deepcopy() doesn’t work. Any help?
February 12, 2024 at 2:03 PM
Why Python’s deepcopy can be so Slow and how to avoid it - Article with benchmark and example by Saurabh Misra #Python #Programming www.codeflash.ai/blog-posts/w...
Why Python’s deepcopy Can Be So Slow (and How to Avoid It) | Codeflash
The comprehensive copying by deepcopy is convenient but expensive. In this post we discuss why is deepcopy is expensive, and show how avoiding the slowdown associated with deepcopy can lead to upto…
www.codeflash.ai
November 27, 2025 at 8:05 AM
The copy module is a built-in module in Python that you can use to copy objects. And in this tutorial, Sara explains how it works. You'll learn about its copy() function, when to use deepcopy(), and how to copy mutable vs immutable objects.
www.freecodecamp.org/news/how-to-...
July 19, 2025 at 8:01 AM
My DeepCopy package should cross 1 billion downloads in ~ 6 months 💃
github.com/myclabs/Dee...
August 11, 2026 at 1:58 PM
Had a fun bug investigating yesterday where someone was deepcopy()ing a Mock into a service and then being surprised when the mock.method.assert_called_with() wasn't succeeding when clearly a mock with that method was being called with those arguments
July 25, 2024 at 8:39 AM
jajaja correcto, pero que después del deepcopy se mantenga la referencia es un poco confuso 😅
August 27, 2025 at 7:03 PM
一般配列を複製するならDeepCopyか、JS・TSなら[...arrayB]を使いますね
December 2, 2024 at 1:13 AM
Probably the first layer is to understand when you need to copy/deepcopy the data you're working on, to prevent changes from propagating back (or forth).

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
January 16, 2025 at 12:13 PM
I just completed "Guard Gallivant" - Day 6 - Advent of Code 2024 #AdventOfCode adventofcode.com/2024/day/6

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.
Day 6 - Advent of Code 2024
adventofcode.com
December 10, 2024 at 3:38 AM
Think .copy() gives you an independent list? It doesn't. Learn why Python's shallow copy shares inner objects and when to use deepcopy instead. #python
Why .copy() in Python Still Mutates Your Original List
hackernoon.com
June 9, 2026 at 1:09 AM
Python & Mongoose
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
April 10, 2025 at 12:27 PM
Deep Copy vs Reference Copy of Arrays in C# Tip #46 - Understanding array copying: reference types share the same memory (like a shared toy box), while deep copies create separate data. #ArrayCopy #DeepCopy #ReferenceType #CSharp #ProgrammingBasics #LearnCoding
June 7, 2025 at 10:47 AM
I just completed "Guard Gallivant" - Day 6 - Advent of Code 2024 #AdventOfCode adventofcode.com/2024/day/6

Learned a very humbling lesson about the difference between deepcopy and shallowcopy in python. 🫠
Day 6 - Advent of Code 2024
adventofcode.com
December 6, 2024 at 1:45 PM
Me topé con este caso por primera vez el otro día y reconozco que me costó darme cuenta de lo que estaba pasando. Tiene lógica, pero intuitivo no es, cuando haces deepcopy crees que te estás cubriendo las espaldas...
August 27, 2025 at 5:53 PM