mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 09:56:17 +03:00
a7e3b2e47b
There are two main issues fixed with this commit: * bytes vs. str: All file, image, and palette data are now handled as bytes. A new _binary module consolidates the hacks needed to do this across Python versions. tostring/fromstring methods have been renamed to tobytes/frombytes, but the Python 2.6/2.7 versions alias them to the old names for compatibility. Users should move to tobytes/frombytes. One other potentially-breaking change is that text data in image files (such as tags, comments) are now explicitly handled with a specific character encoding in mind. This works well with the Unicode str in Python 3, but may trip up old code expecting a straight byte-for-byte translation to a Python string. This also required a change to Gohlke's tags tests (in Tests/test_file_png.py) to expect Unicode strings from the code. * True div vs. floor div: Many division operations used the "/" operator to do floor division, which is now the "//" operator in Python 3. These were fixed. As of this commit, on the first pass, I have one failing test (improper handling of a slice object in a C module, test_imagepath.py) in Python 3, and three that that I haven't tried running yet (test_imagegl, test_imagegrab, and test_imageqt). I also haven't tested anything on Windows. All but the three skipped tests run flawlessly against Pythons 2.6 and 2.7. |
||
---|---|---|
.. | ||
BUILDME | ||
CHANGES | ||
conf.py | ||
CONTENTS | ||
effbot.css | ||
HISTORY.txt | ||
index.html | ||
index.rst | ||
INSTALL.txt | ||
make.bat | ||
Makefile | ||
pythondoc-PIL.ArgImagePlugin.html | ||
pythondoc-PIL.ArgImagePlugin.rst | ||
pythondoc-PIL.BdfFontFile.html | ||
pythondoc-PIL.BdfFontFile.rst | ||
pythondoc-PIL.BmpImagePlugin.html | ||
pythondoc-PIL.BmpImagePlugin.rst | ||
pythondoc-PIL.BufrStubImagePlugin.html | ||
pythondoc-PIL.BufrStubImagePlugin.rst | ||
pythondoc-PIL.ContainerIO.html | ||
pythondoc-PIL.ContainerIO.rst | ||
pythondoc-PIL.CurImagePlugin.html | ||
pythondoc-PIL.CurImagePlugin.rst | ||
pythondoc-PIL.DcxImagePlugin.html | ||
pythondoc-PIL.DcxImagePlugin.rst | ||
pythondoc-PIL.EpsImagePlugin.html | ||
pythondoc-PIL.EpsImagePlugin.rst | ||
pythondoc-PIL.ExifTags.html | ||
pythondoc-PIL.ExifTags.rst | ||
pythondoc-PIL.FitsStubImagePlugin.html | ||
pythondoc-PIL.FitsStubImagePlugin.rst | ||
pythondoc-PIL.FliImagePlugin.html | ||
pythondoc-PIL.FliImagePlugin.rst | ||
pythondoc-PIL.FontFile.html | ||
pythondoc-PIL.FontFile.rst | ||
pythondoc-PIL.FpxImagePlugin.html | ||
pythondoc-PIL.FpxImagePlugin.rst | ||
pythondoc-PIL.GbrImagePlugin.html | ||
pythondoc-PIL.GbrImagePlugin.rst | ||
pythondoc-PIL.GdImageFile.html | ||
pythondoc-PIL.GdImageFile.rst | ||
pythondoc-PIL.GifImagePlugin.html | ||
pythondoc-PIL.GifImagePlugin.rst | ||
pythondoc-PIL.GimpGradientFile.html | ||
pythondoc-PIL.GimpGradientFile.rst | ||
pythondoc-PIL.GimpPaletteFile.html | ||
pythondoc-PIL.GimpPaletteFile.rst | ||
pythondoc-PIL.GribStubImagePlugin.html | ||
pythondoc-PIL.GribStubImagePlugin.rst | ||
pythondoc-PIL.Hdf5StubImagePlugin.html | ||
pythondoc-PIL.Hdf5StubImagePlugin.rst | ||
pythondoc-PIL.IcnsImagePlugin.html | ||
pythondoc-PIL.IcnsImagePlugin.rst | ||
pythondoc-PIL.IcoImagePlugin.html | ||
pythondoc-PIL.IcoImagePlugin.rst | ||
pythondoc-PIL.Image.html | ||
pythondoc-PIL.Image.rst | ||
pythondoc-PIL.ImageChops.html | ||
pythondoc-PIL.ImageChops.rst | ||
pythondoc-PIL.ImageColor.html | ||
pythondoc-PIL.ImageColor.rst | ||
pythondoc-PIL.ImageDraw.html | ||
pythondoc-PIL.ImageDraw.rst | ||
pythondoc-PIL.ImageEnhance.html | ||
pythondoc-PIL.ImageEnhance.rst | ||
pythondoc-PIL.ImageFile.html | ||
pythondoc-PIL.ImageFile.rst | ||
pythondoc-PIL.ImageFileIO.html | ||
pythondoc-PIL.ImageFileIO.rst | ||
pythondoc-PIL.ImageFilter.html | ||
pythondoc-PIL.ImageFilter.rst | ||
pythondoc-PIL.ImageFont.html | ||
pythondoc-PIL.ImageFont.rst | ||
pythondoc-PIL.ImageGL.html | ||
pythondoc-PIL.ImageGL.rst | ||
pythondoc-PIL.ImageGrab.html | ||
pythondoc-PIL.ImageGrab.rst | ||
pythondoc-PIL.ImageOps.html | ||
pythondoc-PIL.ImageOps.rst | ||
pythondoc-PIL.ImagePalette.html | ||
pythondoc-PIL.ImagePalette.rst | ||
pythondoc-PIL.ImagePath.html | ||
pythondoc-PIL.ImagePath.rst | ||
pythondoc-PIL.ImageSequence.html | ||
pythondoc-PIL.ImageSequence.rst | ||
pythondoc-PIL.ImageStat.html | ||
pythondoc-PIL.ImageStat.rst | ||
pythondoc-PIL.ImageTk.html | ||
pythondoc-PIL.ImageTk.rst | ||
pythondoc-PIL.ImageTransform.html | ||
pythondoc-PIL.ImageTransform.rst | ||
pythondoc-PIL.ImageWin.html | ||
pythondoc-PIL.ImageWin.rst | ||
pythondoc-PIL.ImImagePlugin.html | ||
pythondoc-PIL.ImImagePlugin.rst | ||
pythondoc-PIL.ImtImagePlugin.html | ||
pythondoc-PIL.ImtImagePlugin.rst | ||
pythondoc-PIL.IptcImagePlugin.html | ||
pythondoc-PIL.IptcImagePlugin.rst | ||
pythondoc-PIL.JpegImagePlugin.html | ||
pythondoc-PIL.JpegImagePlugin.rst | ||
pythondoc-PIL.McIdasImagePlugin.html | ||
pythondoc-PIL.McIdasImagePlugin.rst | ||
pythondoc-PIL.MicImagePlugin.html | ||
pythondoc-PIL.MicImagePlugin.rst | ||
pythondoc-PIL.MpegImagePlugin.html | ||
pythondoc-PIL.MpegImagePlugin.rst | ||
pythondoc-PIL.MspImagePlugin.html | ||
pythondoc-PIL.MspImagePlugin.rst | ||
pythondoc-PIL.OleFileIO.html | ||
pythondoc-PIL.OleFileIO.rst | ||
pythondoc-PIL.PaletteFile.html | ||
pythondoc-PIL.PaletteFile.rst | ||
pythondoc-PIL.PalmImagePlugin.html | ||
pythondoc-PIL.PalmImagePlugin.rst | ||
pythondoc-PIL.PcdImagePlugin.html | ||
pythondoc-PIL.PcdImagePlugin.rst | ||
pythondoc-PIL.PcfFontFile.html | ||
pythondoc-PIL.PcfFontFile.rst | ||
pythondoc-PIL.PcxImagePlugin.html | ||
pythondoc-PIL.PcxImagePlugin.rst | ||
pythondoc-PIL.PdfImagePlugin.html | ||
pythondoc-PIL.PdfImagePlugin.rst | ||
pythondoc-PIL.PixarImagePlugin.html | ||
pythondoc-PIL.PixarImagePlugin.rst | ||
pythondoc-PIL.PngImagePlugin.html | ||
pythondoc-PIL.PngImagePlugin.rst | ||
pythondoc-PIL.PpmImagePlugin.html | ||
pythondoc-PIL.PpmImagePlugin.rst | ||
pythondoc-PIL.PsdImagePlugin.html | ||
pythondoc-PIL.PsdImagePlugin.rst | ||
pythondoc-PIL.PSDraw.html | ||
pythondoc-PIL.PSDraw.rst | ||
pythondoc-PIL.SgiImagePlugin.html | ||
pythondoc-PIL.SgiImagePlugin.rst | ||
pythondoc-PIL.SpiderImagePlugin.html | ||
pythondoc-PIL.SpiderImagePlugin.rst | ||
pythondoc-PIL.SunImagePlugin.html | ||
pythondoc-PIL.SunImagePlugin.rst | ||
pythondoc-PIL.TarIO.html | ||
pythondoc-PIL.TarIO.rst | ||
pythondoc-PIL.TgaImagePlugin.html | ||
pythondoc-PIL.TgaImagePlugin.rst | ||
pythondoc-PIL.TiffImagePlugin.html | ||
pythondoc-PIL.TiffImagePlugin.rst | ||
pythondoc-PIL.TiffTags.html | ||
pythondoc-PIL.TiffTags.rst | ||
pythondoc-PIL.WalImageFile.html | ||
pythondoc-PIL.WalImageFile.rst | ||
pythondoc-PIL.WmfImagePlugin.html | ||
pythondoc-PIL.WmfImagePlugin.rst | ||
pythondoc-PIL.XbmImagePlugin.html | ||
pythondoc-PIL.XbmImagePlugin.rst | ||
pythondoc-PIL.XpmImagePlugin.html | ||
pythondoc-PIL.XpmImagePlugin.rst | ||
pythondoc-PIL.XVThumbImagePlugin.html | ||
pythondoc-PIL.XVThumbImagePlugin.rst |