Code Quiz
Lazy File Reader That Isn't Lazy
A generator meant to process a huge file line-by-line accidentally loads it all into memory.
This generator is supposed to stream a huge file with low memory usage. What is the bug?
A generator meant to process a huge file line-by-line accidentally loads it all into memory.
This generator is supposed to stream a huge file with low memory usage. What is the bug?