Copying a ZipExtFile

ryles rylesny at gmail.com
Thu Oct 29 02:27:18 EDT 2009


On Oct 28, 8:33 pm, ryles <ryle... at gmail.com> wrote:
> As for why the bytesToRead calculation in ZipExtFile.read() results in
> a long, I've not yet looked at it closely.

Simple, actually:

In ZipExtFile.__init__():

    self.bytes_read = 0L

In ZipExitFile.read():

    bytesToRead = self.compress_size - self.bytes_read

13 - 0L == 13L



More information about the Python-list mailing list