Re:PEP 572: Python assignment expressions has been accepted
by kelnos on Tuesday July 03, 2018 @06:16AM
(#17448968)
For stuff like that I'd just use `defaultdict`. That if/else tree then reduces to 2 lines total.
[ Parent
| on HN ]