33
The Python dictionary dispatch pattern
(jamesg.blog)
Welcome to the Python community on the programming.dev Lemmy instance!
October 2023
November 2023
Past
July 2023
August 2023
September 2023
With classes you needs getattr in python to achieve the same. This is cleaner for simple mappings