3 ms·
So has the Python community collectively abandoned "there's only one way to do it"?
by philwelch 9y ago
So has the Python community collectively abandoned "there's only one way to do it"?
- jrs95 9y agoThat (and Zen of Python in general) was always intended to be primarily about the development of the language itself and it's core libraries. Of course it carried over a fair bit, but I don't think it was ever really a thing enough to say that the community abandoned it.
- joshuamorton 9y agoI find it funny that everyone misremebers this. The zen states that there should be one, and preferably only one, obvious way to do it. Not only one way to do it, but one obvious way, and if you have one obvious way you probably don't need more than one. There's always been more than one way to do things. String formatting, loops/map-filter/comprehensions., Even importing. The idea is that for whatever you're doing, the language should provide an obvious way to accomplish that. Sometimes that means having competing ways of doing it, so that distinct but similar problems both have obvious solutions.
- hellofunk 9y ago> I find it funny that everyone misremebers this. Probably because the Zen is also right about most people not being Dutch.
- sametmax 9y agoThe zen is a target, but python fails to reach it very often. After all, duck typing is implicit, there are many way to format and the logging library is very much nesting. We are not monks, we live in the real world.