PIL 1.1.7 works with all Python versions back to 1.5.2, so this won't
ever go into the 1.1.X mainline (and division behaviour won't ever be
changed in the Python 2.X series either, so it doesn't really matter).

</F>

On Wed, May 27, 2009 at 10:52 AM, Sebastian Haase <seb.ha...@gmail.com> wrote:
> Hi,
>
> short question:  Since I usually like running Python with "python2.5
> -Qnew" , I was wondering if patches were applied that substituted '/'
> for '//' in some places were it appeared necessary ?
>
> Some places I patches in my 1.1.6 version are:
> PIL/GifImagePlugin.py:                if not (chr(i//3) == p[i] ==
> p[i+1] == p[i+2]):
> PIL/TiffImagePlugin.py:                    count = count // 2        #
> adjust for rational data field
> PIL/TiffImagePlugin.py:                palette = map(lambda a: chr(a
> // 256), self.tag[COLORMAP])
> PIL/TiffImagePlugin.py:                palette = map(lambda a: chr(a
> // 256), range(256))
> PIL/TiffImagePlugin.py:            #palette = map(lambda a: chr(a //
> 256), self.tag[COLORMAP])
> PIL/TiffImagePlugin.py:    stride = len(bits) * ((im.size[0]*bits[0]+7)//8)
> PIL/XVThumbImagePlugin.py:            PALETTE = PALETTE +
> (chr((r*255)//7)+chr((g*255)//7)+chr((b*255)//3))
>
> (These can of course be found using "python -Qwarn")
>
> Thanks,
> Sebastian Haase
> _______________________________________________
> Image-SIG maillist  -  image-...@python.org
> http://mail.python.org/mailman/listinfo/image-sig
>
_______________________________________________
Image-SIG maillist  -  Image-SIG@python.org
http://mail.python.org/mailman/listinfo/image-sig

Reply via email to