On Mon, Nov 29, 2021 at 2:12 AM Steven D'Aprano <st...@pearwood.info> wrote:
Since most iterators don't have many methods, it's not clear to me that > iterators are even a little bit relevant. I think you just answered your own question. Since iterators in general don’t have methods, they can not be chained. I believe the OP was suggesting that they have some methods so that they could be chained. There are two tricks here: 1) What methods to add? There are literally an infinite number of possibilities. 2) there are multiple ways to create Iterators, how does one make these methods universal? -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/VAPCLIIX2MC7XDO3FFVNDBRB2JD2LAP7/ Code of Conduct: http://python.org/psf/codeofconduct/