PythOnRails@programming.dev to Python@programming.dev · 2 years agoThe Python dictionary dispatch patternjamesg.blogexternal-linkmessage-square10fedilinkarrow-up133arrow-down10
arrow-up133arrow-down1external-linkThe Python dictionary dispatch patternjamesg.blogPythOnRails@programming.dev to Python@programming.dev · 2 years agomessage-square10fedilink
minus-squareZeth0s@lemmy.worldlinkfedilinkarrow-up1·2 years agoWith classes you needs getattr in python to achieve the same. This is cleaner for simple mappings
With classes you needs getattr in python to achieve the same. This is cleaner for simple mappings