Queue limitations?

simonwittber at gmail.com simonwittber at gmail.com
Wed Mar 15 21:46:28 EST 2006


mateom at gmail.com wrote:
> > the queue holds references to the images, not the images themselves,
> > so the size should be completely irrelevant.I use one instance of imageQueue.
>
> hmmm.. true. And it also fails when I use PIL Image objects instead of
> arrays. Any idea why compressing the string helps?


Compressing into a string converts the image intro a string type, which
is immutable. When you uncompress it, you've got a copy of the image,
rather than a reference to the original image. This might give you a
hint as to what is going wrong.

-Sw.




More information about the Python-list mailing list