This is a take! More often people complain about how hard it is to achieve true immutability in Python.
list(tuple_instance) to the rescue, I guess :)
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.
Belated #introduction post!
In true #mutable and #adhd nature I just jumped right into things without introductions - and I have a great variety of "roles" in life, though this account will be mainly focused on #astrology and #spirituality ✨
I'm born and raised in Iceland, have lived in the UK and Sweden too but am firmly back on the land of my ancestors, bound to it for the time being through spirit and practice 🌋🇮🇸 I practice #seiður and #AncestorVeneration, including spirits of place.
1/2
#introduction #mutable #adhd #astrology #spirituality #seidur #ancestorveneration
A Programming Language Where the Syntax and Semantics Are Mutable At Runtime
(2007) : Seaton, Christopher Graham
url: https://hdl.handle.net/1983/d22dcb07-e4bc-40c3-93e3-dace2b4b2184
#dissertation #katahdin #language #mutable #packrat_parser #program
#my_bibtex
#dissertation #katahdin #language #mutable #packrat_parser #program #my_bibtex
#JavaWorld #Java "Does Java pass by reference or pass by value? Here’s what happens when you pass an object reference to a method in Java" #Reference #Value #Copy #mutable #immutable ... https://www.javaworld.com/article/3512039/does-java-pass-by-reference-or-pass-by-value.html
#JavaWorld #java #reference #value #copy #mutable #immutable
#JavaWorld #Java "Does Java pass by reference or pass by value? Here’s what happens when you pass an object reference to a method in Java" #Reference #Value #Copy #mutable #immutable ... https://www.javaworld.com/article/3512039/does-java-pass-by-reference-or-pass-by-value.html
#immutable #mutable #copy #value #reference #java #JavaWorld