4 ms·
> This article also highlights some pain points I have with python. They say avoid big list comprehensions, but there is no nice way of piping data in Python on
by olau 4y ago
> This article also highlights some pain points I have with python. They say avoid big list comprehensions, but there is no nice way of piping data in Python one can switch to instead. Especially with lambdas being so underpowered (so they also say to avoid).
Write generator functions, i.e. functions that yield their results. They are surprisingly powerful. I usually find I need only one or two.