#DeepCopy

TechKeysXTechKeysX
2025-06-07

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. Use Clone(), Array.Copy(), or ToArray() for deep copies.

eicker.TV Tech Communitytech@toot.community
2025-01-30

DeepSeek ist wohl doch nicht das Wunderkind, für das es alle halten. #DeepCopy #ChatGPT » eicker.TV » youtube.com/watch?v=UL5IfQ-KGZ #eickerTV #Tech #Community

eicker.TV /Technik Kurzvideostechnik@mastodon.world
2025-01-30

DeepSeek ist wohl doch nicht das Wunderkind, für das es alle halten. #DeepCopy #ChatGPT » eicker.TV » youtube.com/watch?v=UL5IfQ-KGZ #eickerTV #Technik #Tech #Kurzvideos

@matt

This does bite people in Python, as it applies to lists and dicts in addition to Pandas or whatever that is.

list and dict have copy() methods, but they're shallow copies. If you have mutable objects in your list or dict, those can be changed by someone with a copy...

Use copy.deepcopy() to ensure you get a mutable object that no one else (barring evil intent...) has a handle to fiddle with its contents.

#python #mutable #DeepCopy

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst