The walrus operator in #python allows for some nasty code sometimes.
>>> def toto(): ... return dict(a=1, b=2) ... >>> for x in (c := toto()).keys(): ... print(x) ... a b >>> c {'a': 1, 'b': 2}
=> More informations about this toot | View the thread | More toots from nicoe
=> View python tag This content has been proxied by September (3851b).Proxy Information
text/gemini