Re:What’s New in Python 3.8
by gimboland on Tuesday October 15, 2019 @05:44AM
(#21256929)
Nice. I missed this feature only a few weeks ago. Good to know it's landed!
[ Parent
| on HN ]
Few years ago I wrote this thing: https://github.com/adh/py-clos
It can also do dispatch on multiple arguments and on equality and has dispatch cache implemented as C extension (from my rudimentary measurements it seems that dispatch with cache hit is actually slightly faster than normal CPython method call).