This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author amaury.forgeotdarc
Recipients amaury.forgeotdarc, ezio.melotti, solinym, travis
Date 2009-08-21.21:28:26
SpamBayes Score 1.0290056e-05
Marked as misclassified No
Message-id <1250890107.94.0.019005014931.issue5210@psf.upfronthosting.co.za>
In-reply-to
Content
Hm, I tried a modified version of your first test, and I found another 
problem with the current zlib library;
starting with the input:
x = x1 + x2 + HAMLET_SCENE    # both compressed and uncompressed data

The following scenario is OK:
dco.decompress(x) # returns HAMLET_SCENE
dco.unused_data   # returns HAMLET_SCENE

But this one:
for c in x:
    dco.decompress(x) # will return HAMLET_SCENE, in several pieces
dco.unused_data   # only one character, the last of (c in x)!

This is a bug IMO: unused_data should accumulate all the extra uncompressed 
data.
History
Date User Action Args
2009-08-21 21:28:28amaury.forgeotdarcsetrecipients: + amaury.forgeotdarc, ezio.melotti, travis, solinym
2009-08-21 21:28:27amaury.forgeotdarcsetmessageid: <1250890107.94.0.019005014931.issue5210@psf.upfronthosting.co.za>
2009-08-21 21:28:26amaury.forgeotdarclinkissue5210 messages
2009-08-21 21:28:26amaury.forgeotdarccreate