
Just a note here: On Fri, Nov 26, 2021 at 6:37 AM Raimi bin Karim <raimi.bkarim@gmail.com> wrote:
to improve readability of chaining lazy functions (map, filter, etc.) for iterables.
I think there is a slight misperception here. I've seen the term lazy used a couple times, and at least once in contrast to list comprehensions. However, there are, of course, generator comprehensions (AKA generator expressions) which are also lazy. So this is about syntax, not capability. Another note: I'm not recommending it, but we could add a bunch of things to the Iterator ABC, and then it could be available everywhere. -CHB -- Christopher Barker, PhD (Chris) Python Language Consulting - Teaching - Scientific Software Development - Desktop GUI and Web Development - wxPython, numpy, scipy, Cython