
On Sun, Nov 28, 2021 at 11:14 AM Chris Angelico <rosuav@gmail.com> wrote:
Back in the day Python had map, filter, and reduce.
Then comprehensions were added, which are another way to express map and filter in one go.
I really like comprehensions.
But since then, there has been an informal movement, if you can call it
On Mon, Nov 29, 2021 at 5:54 AM Christopher Barker <pythonchb@gmail.com> wrote: that, back to map and filter. Itertools is great, but it's not all that compatible with comprehensions :-(
Citation needed? What informal movement has there been, and where?
maybe even "informal" movement was too strong. It's a trend I've observed. At least on this list and others I follow -- maybe not in the broader community. One example was a proposal a while back on this list for a "groupby" in itertools (it kind of withered on the vine, like many good ideas here), I suggested that it be made comprehension friendly, and some others including the OP) didn't see the point. Maybe that's not representative, but it's a trend I've noticed. -CHB -- Christopher Barker, PhD (Chris) Python Language Consulting - Teaching - Scientific Software Development - Desktop GUI and Web Development - wxPython, numpy, scipy, Cython