with gzip.open(filename, 'rb') as f:
for line in f:
How do I achieve this with lz4tools?
lz4tools.open(filename).read()
fails with RecursionError: maximum recursion depth exceeded in comparison -- I assume because it tries to load everything into memory and doesn't return a generator?
With gzip.open() the following is possible:
How do I achieve this with lz4tools?
lz4tools.open(filename).read()
fails with
RecursionError: maximum recursion depth exceeded in comparison
-- I assume because it tries to load everything into memory and doesn't return a generator?