Possible memory leak?

Tim Peters tim.peters at gmail.com
Thu Jan 26 02:28:23 CET 2006

[Fredrik Lundh]
>> ...
>> for the OP's problem, a PIL-based solution would probably be ~100
>> times faster than the array solution, but that's another story.

> What do you mean by a PIL based solution? The reason I need to get the
> data into the string list is so I can pump it into PIL to give me my
> image... If PIL has a way to make it easier, I do not know it, but
> would like to know it.

If your data is in an array.array, you can pass that directly to PIL's
(1.1.4) Image.frombuffer() constructor

More information about the Python-list mailing list