|
|
|
|
|
by kilburn
3742 days ago
|
|
I totally agree with you on the core issue. However, I would reject your `chunks` function in a code review and tell you to use `grouper` form the itertools recipes [1]. More generally,any time I've ended up with a long list comprehension, the answer has been to "check itertools and see how you would describe this ugly comprehension in those terms" [1] https://docs.python.org/3/library/itertools.html#itertools-r... |
|