@flub what I find most frustrating, though, is how very different the performance of iterators vs loops can be.
In #rust, refactoring from one to another might have some small effect. But in #python , I need to know the intricacies of both, when refactoring. Last week I refactored a python iterators into a loop, no functional change, and a run went from 13 seconds to over 4 minutes! Apparently smth with memory allocations and -copies. As leaky an abstraction I have ever seen.