Skip to content

Instantly share code, notes, and snippets.

@zsrinivas
Created December 9, 2015 19:11
Show Gist options
  • Save zsrinivas/38681cad88928b089abb to your computer and use it in GitHub Desktop.
Save zsrinivas/38681cad88928b089abb to your computer and use it in GitHub Desktop.
import lzma
with lzma.open('test.7z', 'w') as lf:
lf.write(b'123\n'*1000)
with lzma.open('test.7z', 'r') as lf:
arr = list(lf)
print(len(arr))
print(set(arr))
print(arr[0])
print(arr[0].decode('utf-8'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment