Serhiy Storchaka added the comment:

> Cool, looking forward to your patch =).

It will take some time to make a completed patch. I don't have much time 
*right* now. Wait for a few hours.

> Also, is there any chance you could provide a more detailed explanation of
> what's going on? This is just me being curious about how it all works
> under the hood...

When reading from the buffer bz2 does:

  result = buffer[:size]
  buffer = buffer[size:]  # copy a thousands bytes

zipfile does:

  result = buffer[offset:offset+size]
  offset += size  # buffer untouched

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue16034>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to