this post was submitted on 08 Jun 2025
422 points (97.5% liked)

Programmer Humor

36257 readers
1058 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[โ€“] sjmarf@sh.itjust.works 8 points 9 hours ago (1 children)

Python does have a switch statement now, actually. And yes, they went out of their way to call it something different - match.

https://docs.python.org/3/tutorial/controlflow.html#match-statements

[โ€“] NichtElias@sh.itjust.works 1 points 4 hours ago

match isn't just equivalent to switch though, so in this case it actually makes sense to call it something different.