News for hackers. Stuff that matters.
Re:What Is the Switch-Case Equivalent in Python? by otabdeveloper4 on Sunday April 04, 2021 @02:51AM (#26687439)
> The philosophy of python is there should be only one pythonic way of doing things.

That ship has sailed more than a decade ago.

(And if we're on a crusade to make Python pythonic again, let's start with the bigger fish - like the sync/async function distinction. Somehow Python managed to fall into the red/blue function trap the hardest.)

Re:What Is the Switch-Case Equivalent in Python? by Redoubts on Sunday April 04, 2021 @09:03AM (#26689103)
> the red/blue function trap

What should have been done here?

Re:What Is the Switch-Case Equivalent in Python? by otabdeveloper4 on Monday April 05, 2021 @07:38AM (#26697730)
Python doesn't need a special keyword to distinguish functions that 'yield' from those that don't. Why should async functions be different?