C. · @cazabon
175 followers · 4389 posts · Server mindly.social

@phurd

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 :)

#data #mutable #immutable

Last updated 1 year ago

C. · @cazabon
169 followers · 4177 posts · Server mindly.social

@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

Last updated 1 year ago

Belated post!

In true and 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 and

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 and , including spirits of place.
1/2

#introduction #mutable #adhd #astrology #spirituality #seidur #ancestorveneration

Last updated 1 year ago

nope · @stacked_automation
123 followers · 6688 posts · Server mastodon.social

A Programming Language Where the Syntax and Semantics Are Mutable At Runtime
(2007) : Seaton, Christopher Graham
url: hdl.handle.net/1983/d22dcb07-e

#dissertation #katahdin #language #mutable #packrat_parser #program #my_bibtex

Last updated 2 years ago

gaby_wald · @gaby_wald
70 followers · 16249 posts · Server framapiaf.org

"Does Java pass by reference or pass by value? Here’s what happens when you pass an object reference to a method in Java" ... javaworld.com/article/3512039/

#JavaWorld #java #reference #value #copy #mutable #immutable

Last updated 5 years ago

gaby_wald · @gaby_wald
73 followers · 16270 posts · Server framapiaf.org

"Does Java pass by reference or pass by value? Here’s what happens when you pass an object reference to a method in Java" ... javaworld.com/article/3512039/

#immutable #mutable #copy #value #reference #java #JavaWorld

Last updated 5 years ago

Papers We Love · @paperswelove
396 followers · 160 posts · Server mstdn.io

State in Haskell - Launchbury, Jones

PDF: buff.ly/2shpdZd

#haskell #state #mutable

Last updated 8 years ago