3 ms·
i don't really see why or how a generator expression is any easier to read than a chained call like the OP's example. In fact, for people unfamiliar with pytho
by chii 4y ago
i don't really see why or how a generator expression is any easier to read than a chained call like the OP's example.
In fact, for people unfamiliar with python, this expression is even more strange - you read expression starting from the middle (the _in_ ... part), and then return to the beginning. It makes your eye dart forward and backwards on the text.