Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linewise iterate compressed file #16

Open
dreamflasher opened this issue Feb 28, 2017 · 0 comments
Open

Linewise iterate compressed file #16

dreamflasher opened this issue Feb 28, 2017 · 0 comments

Comments

@dreamflasher
Copy link

With gzip.open() the following is possible:

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?

@dreamflasher dreamflasher changed the title Linewise iterated compressed file Linewise iterate compressed file Feb 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant