python 2.6: how to modify a PIL image from C without copying forth and back

Tim Roberts timr at probo.com
Thu Mar 4 22:44:34 EST 2010


News123 <news123 at free.fr> wrote:
>
>Yes, this might be an option
>Somehow though it didn't feel right for me to depend on internal non
>documented data types, which might change between releases of PIL.

That's absolutely true.  If performance is a priority, somethimes you have
to do things that are "dirty".  Just include lots of comments saying what
you did and why.

Personally, because so much of PIL is in C, I would judge internal changes
to be unlikely.
-- 
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.



More information about the Python-list mailing list