News for hackers. Stuff that matters.
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.
Re:PEP 572: Python assignment expressions has been accepted by stfwn on Tuesday July 03, 2018 @06:22AM (#17448988)
That’s a good tip, thanks!