2 ms·
I'm a big fan of Python syntax, but really comprehensions don't make any sense to me efficiency wise (even for readability). Python syntax would become perfect
by lazarovitch 1y ago
I'm a big fan of Python syntax, but really comprehensions don't make any sense to me efficiency wise (even for readability). Python syntax would become perfect with filter() and map() :')
- sn9 1y agoWith judicious use of generators, and with itertools [0] when needed, they can be quite efficient for not much effort. And these are flexible tools that you can take with you across projects. [0] https://docs.python.org/3/library/itertools.html https://docs.python.org/3/library/itertools.html