Just a note here: On Fri, Nov 26, 2021 at 6:37 AM Raimi bin Karim <raimi.bka...@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
_______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/2YASVV5KK6ASXYAMVE7BQREICTV46BNC/ Code of Conduct: http://python.org/psf/codeofconduct/