Comment

Comment by andi999

So what is the current one and only one pythonic way when you need a switch statement (like having a lot of cases to handle). I see two possibilities:

1.a lot of 'if'-statement 2.using a dict and the value is a function you call if the key matches

Or what else?

parent andi999 5 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton