bestelbus22@lemmy.world to Programmer Humor@lemmy.mlEnglish · 17 hours agoThe meaning of thislemmy.mlexternal-linkmessage-square54fedilinkarrow-up1434arrow-down111
arrow-up1423arrow-down1external-linkThe meaning of thislemmy.mlbestelbus22@lemmy.world to Programmer Humor@lemmy.mlEnglish · 17 hours agomessage-square54fedilink
minus-squareNatanox@discuss.tchncs.delinkfedilinkEnglisharrow-up6·edit-214 hours agoAnd switch cases (called match cases) are there as well. I use lambdas all the time to shovel GTK signal emitions from worker threads into GLib.idle_add in a single line, works as you’d expect. Previous commenters probably didn’t look at Python in a really long time.
minus-squareJumuta@sh.itjust.workslinkfedilinkarrow-up1·3 hours agoi mean tbf match case was only added in 3.10
And switch cases (called match cases) are there as well.
I use lambdas all the time to shovel GTK signal emitions from worker threads into GLib.idle_add in a single line, works as you’d expect.
Previous commenters probably didn’t look at Python in a really long time.
i mean tbf match case was only added in 3.10