2 ms·
Yes, but I think the author realizes that, which is why (s)he wrote above "this will produce an error, since running a generator function twice is not allowed,
by icebraining 11y ago
Yes, but I think the author realizes that, which is why (s)he wrote above "this will produce an error, since running a generator function twice is not allowed, and this would not re-use the same items in memory anyway, which is kind of the main point with stream processing".
The solution being proposed at the end is actually not using generators at all.
- m_mueller 11y agoOh I see, I missed that this "limitation" also applies for his DPI example that I was toying with.