Hacker Timesnew | past | comments | ask | show | jobs | submitlogin

This debate could be summed up as:

There's more than one way to do it *vs* there should be one, and preferably only one, obvious way to do it



> there should be one, and preferably only one, obvious way to do it

Loops, list/dict comprehensions, if statements, and ternary expressions would all like a word


The same debate applies to all of those things, so this is just another instance of Python battling with a philosophical principle underlying the language, which naturally arises anytime a redundant (but good) feature like this is added to the language




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: