Re:Python 3.11 vs 3.10 performance
by wvh on Wednesday July 06, 2022 @03:12PM
(#32005438)
I don't think this is bad code. Maybe not the most Pythonic in the imperative sense, but certainly you could come across such constructs in languages that are more oriented towards functional programming. This could also be solved in a more readable manner by having a generator pipeline, though it would be a good idea to see what the performance of chained generators is like in your version and flavour of Python.
[ Parent
| on HN ]
There are no comments on this comment yet.