4 ms·
You're effectively saying something like: Canadians prefer Canada. What about the rest of the world? Once you start adding more "and" to the if-statement in th
by DwnVoteHoneyPot 4y ago
You're effectively saying something like: Canadians prefer Canada. What about the rest of the world?
Once you start adding more "and" to the if-statement in the list comprehension, it becomes a mess. Breaking them down to smaller chunks is required because comprehensions are messy. You are doing smaller chunks due to a shortcoming of comprehensions. Chaining is nice option to have, especially when the chained functions are straight forward.
- lcnPylGDnU4H9OF 4y ago> Map/filter are considered inferior in Python to list comprehensions. > By who? > By the Python developers and its wider community. > You're effectively saying something like: Canadians prefer Canada. What about the rest of the world? They're actually saying that Python developers prefer one particular way of doing something rather than a different particular way of doing the same thing. You're suggesting that they're saying Python developers (Canadians) prefer Python (Canada). I don't mean to speak against your broader points, just that this specific call out is mistaken.