@[email protected] to [email protected] • 1 year agoThe Python dictionary dispatch patternjamesg.blogexternal-linkmessage-square10fedilinkarrow-up130arrow-down10cross-posted to: [email protected]
arrow-up130arrow-down1external-linkThe Python dictionary dispatch patternjamesg.blog@[email protected] to [email protected] • 1 year agomessage-square10fedilinkcross-posted to: [email protected]
minus-square@Zeth0slink2•1 year 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