
On Mon, Nov 29, 2021 at 2:12 AM Steven D'Aprano <steve@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