2 ms·
Python's philosophy is often said to be: "There should be one - and preferably only one - obvious way to do it." Which is not exactly the same as "one way to
by driax 14y ago
Python's philosophy is often said to be:
"There should be one - and preferably only one - obvious way to do it."
Which is not exactly the same as "one way to do it". There can be many ways to do it, if they are obvious from perspectives, just don't add to many since it will cloud the scene, and the programmer won't know which to use.
It's all about having different developers come to the same simple solution when confronted by the same type of problem.
But I agree with everything you said. Some times only having one way becomes a burden. Many times precisely because it's not the most obvious way in the specific situation.