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 pitrou
Recipients amaury.forgeotdarc, giampaolo.rodola, gpolo, pitrou
Date 2008-07-05.18:48:14
SpamBayes Score 0.076227315
Marked as misclassified No
Message-id <1215283696.15.0.292198046158.issue3139@psf.upfronthosting.co.za>
In-reply-to
Content
Now I've just discovered there is the same problem with the
array.array() type (see following code).


import bz2, threading, array

bz2c = bz2.BZ2Compressor()
# Span at least a whole arena (256KB long)
junk_len = 512 * 1024
junk = array.array("c", b"a") * junk_len
empty = array.array("c")
buf = empty[:]

for x in range(50):
    buf[:] = junk
    t = threading.Thread(target=bz2c.compress, args=[buf])
    t.start()
    buf[:] = empty
    t.join()
History
Date User Action Args
2008-07-05 18:48:17pitrousetspambayes_score: 0.0762273 -> 0.076227315
recipients: + pitrou, amaury.forgeotdarc, giampaolo.rodola, gpolo
2008-07-05 18:48:16pitrousetspambayes_score: 0.0762273 -> 0.0762273
messageid: <1215283696.15.0.292198046158.issue3139@psf.upfronthosting.co.za>
2008-07-05 18:48:15pitroulinkissue3139 messages
2008-07-05 18:48:14pitroucreate