title: Can mmap and gzip collaborate?
body: <p>I'm trying to figure how to use mmap with a gzip compressed file. Is that even possible ?</p>
  
  <pre>
  import mmap
  import os
  import gzip
  
  filename = r'C:\temp\data.gz'
  
  file = gzip.open(filename, "rb+")
  size = os.path.getsize(filename)
  
  file = mmap.mmap(file.fileno(), size)
  
  print file.read(8)
  </pre>
  
  <p>The output data is compressed.</p>