4 ms·
Python’s “one right way to do it” is specifically designed to avoid this. This isn’t Perl.
by david38 5y ago
Python’s “one right way to do it” is specifically designed to avoid this. This isn’t Perl.
- Zababa 5y agoCurrent Python doesn't reflect this philosophy though. You have lots of options for strings and string formatting. There is pattern matching and if statements. The standard library often isn't the best option for stuff (like HTTP requests) so you use another library. Package management and deployment is far from solved, with lots of different tools.
- dragonwriter 5y ago> You have lots of options for strings and string formatting. “Strings and string formatting” is a very broad domain. For most specific tasks, there is one low-impedance approach and it takes very little (but not zero) reflection and/or experience to find it. Most new Python features directly address specific tasks for which there are currently multiple relatively high-impedance approaches taken because there is not one obviously correct way. Python's “one obviously correct way” is not “one possible way” (the latter approach is closer to Go.)
- klyrs 5y agoPet peeve: there is no right way to do type annotations. Two major projects aren't even compatible: https://www.cs.rpi.edu/~milanova/docs/dls2020.pdf https://www.cs.rpi.edu/~milanova/docs/dls2020.pdf
- woah 5y agoPython has multiple different ways to do things even in the standard library lol