logoalt Hacker News

kqr02/20/20252 repliesview on HN

I think this is a change longer in the making than that. Back when I started working with Python in the mid--late 2000s, the Zen was holy and it seemed very unlikely to ever see multiple ways to do "one thing".

The Python community has since matured and realised that what they previously thought of as "one thing" were actually multiple different things with small nuances and it makes sense to support several of them for different use cases.


Replies

guappa02/20/2025

One way to do the things. That's why there's 5000 ways to install a module.

show 1 reply
riffraff02/20/2025

You may be right. I checked and found the introduction of the ternary expression, which I found to be wildly "unpythonic", was back in 2006. Time flies.