Sgt_choke_n_stroke@lemmy.world to Programmer Humor@programming.dev · 2 years agoThe temptation is always therelemmy.worldimagemessage-square121fedilinkarrow-up11.12Karrow-down139
arrow-up11.08Karrow-down1imageThe temptation is always therelemmy.worldSgt_choke_n_stroke@lemmy.world to Programmer Humor@programming.dev · 2 years agomessage-square121fedilink
minus-squareHurglet@lemmy.basedcount.comlinkfedilinkarrow-up1·2 years agoI do this all the time in Python by creating a class like class Core: foo = "bar"
minus-squareryannathans@aussie.zonelinkfedilinkarrow-up3·2 years agoThat’s not immutable nor a singleton
minus-squarexmunk@sh.itjust.workslinkfedilinkarrow-up4·2 years agoThat makes it inherently multithread compatible!
I do this all the time in Python by creating a class like
class Core: foo = "bar"
That’s not immutable nor a singleton
That makes it inherently multithread compatible!