2 ms·
I think that's wrong, def lazy_lines(filename): with open(filename) as f: for line in f: yield f works just fine
by rat87 11y ago
I think that's wrong,
def lazy_lines(filename):
with open(filename) as f:
for line in f:
yield f
works just fine