From 92ca814570ec22bb44233e89041d2fc5a68dab52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Delfino?= Date: Tue, 17 Apr 2018 08:06:14 -0300 Subject: [PATCH 1/7] Mention Pillow to work with more image formats --- Doc/library/tkinter.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Doc/library/tkinter.rst b/Doc/library/tkinter.rst index 6d90e43e33b266..9399931449fc82 100644 --- a/Doc/library/tkinter.rst +++ b/Doc/library/tkinter.rst @@ -799,6 +799,10 @@ reference to the image. When the last Python reference to the image object is deleted, the image data is deleted as well, and Tk will display an empty box wherever the image was used. +.. seealso:: + + The `Pillow package `_ adds support for + formats such as BMP, JPEG, TIFF, and WebP, among others. .. _tkinter-file-handlers: From ca639c2717e9c8667a20ba6eb784ec9e36a6fe7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Delfino?= Date: Wed, 18 Apr 2018 07:50:41 -0300 Subject: [PATCH 2/7] Update PIL doc references to Pillow --- Doc/distutils/introduction.rst | 8 ++++---- Doc/tutorial/modules.rst | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Doc/distutils/introduction.rst b/Doc/distutils/introduction.rst index 8f46bd74c5b01a..9e335b7d2cfb33 100644 --- a/Doc/distutils/introduction.rst +++ b/Doc/distutils/introduction.rst @@ -193,10 +193,10 @@ modules using the Distutils: module distribution a collection of Python modules distributed together as a single downloadable resource and meant to be installed *en masse*. Examples of some well-known - module distributions are NumPy, SciPy, PIL (the Python Imaging - Library), or mxBase. (This would be called a *package*, except that term is - already taken in the Python context: a single module distribution may contain - zero, one, or many Python packages.) + module distributions are NumPy, SciPy, Pillow, or mxBase. (This would be + called a *package*, except that term is already taken in the Python context: + a single module distribution may contain zero, one, or many Python + packages.) pure module distribution a module distribution that contains only pure Python modules and packages. diff --git a/Doc/tutorial/modules.rst b/Doc/tutorial/modules.rst index 584d4fd72ea82b..36d099d43741c5 100644 --- a/Doc/tutorial/modules.rst +++ b/Doc/tutorial/modules.rst @@ -382,8 +382,8 @@ module names". For example, the module name :mod:`A.B` designates a submodule named ``B`` in a package named ``A``. Just like the use of modules saves the authors of different modules from having to worry about each other's global variable names, the use of dotted module names saves the authors of multi-module -packages like NumPy or the Python Imaging Library from having to worry about -each other's module names. +packages like NumPy or Pillow from having to worry about each other's module +names. Suppose you want to design a collection of modules (a "package") for the uniform handling of sound files and sound data. There are many different sound file From 497747c47bae217574bb1ab606cb785c25418a2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Delfino?= Date: Wed, 18 Apr 2018 07:53:09 -0300 Subject: [PATCH 3/7] Update Pillow URL --- Doc/library/tkinter.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/tkinter.rst b/Doc/library/tkinter.rst index 9399931449fc82..68282eb62fd7eb 100644 --- a/Doc/library/tkinter.rst +++ b/Doc/library/tkinter.rst @@ -801,7 +801,7 @@ wherever the image was used. .. seealso:: - The `Pillow package `_ adds support for + The `Pillow package `_ adds support for formats such as BMP, JPEG, TIFF, and WebP, among others. .. _tkinter-file-handlers: From 933dcd3b4429d2b3de3e94e2dc417bbbbc86ffb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Delfino?= Date: Wed, 18 Apr 2018 16:27:42 -0300 Subject: [PATCH 4/7] Change link from Pillow package to just Pillow --- Doc/library/tkinter.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/tkinter.rst b/Doc/library/tkinter.rst index 68282eb62fd7eb..11ae563d2c61ab 100644 --- a/Doc/library/tkinter.rst +++ b/Doc/library/tkinter.rst @@ -801,7 +801,7 @@ wherever the image was used. .. seealso:: - The `Pillow package `_ adds support for + The `Pillow `_ package adds support for formats such as BMP, JPEG, TIFF, and WebP, among others. .. _tkinter-file-handlers: From 368160bd8eab4750b6be698868b5ad0098ecc469 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Delfino?= Date: Fri, 20 Apr 2018 08:16:41 -0300 Subject: [PATCH 5/7] Unwrap lines --- Doc/distutils/introduction.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Doc/distutils/introduction.rst b/Doc/distutils/introduction.rst index 9e335b7d2cfb33..1d4b2df9edd7d7 100644 --- a/Doc/distutils/introduction.rst +++ b/Doc/distutils/introduction.rst @@ -193,10 +193,10 @@ modules using the Distutils: module distribution a collection of Python modules distributed together as a single downloadable resource and meant to be installed *en masse*. Examples of some well-known - module distributions are NumPy, SciPy, Pillow, or mxBase. (This would be - called a *package*, except that term is already taken in the Python context: - a single module distribution may contain zero, one, or many Python - packages.) + module distributions are NumPy, SciPy, Pillow + , or mxBase. (This would be called a *package*, except that term is + already taken in the Python context: a single module distribution may contain + zero, one, or many Python packages.) pure module distribution a module distribution that contains only pure Python modules and packages. From 325fa21d0d609dd6795b153f063d8ca1060805dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Delfino?= Date: Fri, 20 Apr 2018 08:19:05 -0300 Subject: [PATCH 6/7] Unwrap line --- Doc/tutorial/modules.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/tutorial/modules.rst b/Doc/tutorial/modules.rst index 36d099d43741c5..3f689327a0c793 100644 --- a/Doc/tutorial/modules.rst +++ b/Doc/tutorial/modules.rst @@ -382,8 +382,8 @@ module names". For example, the module name :mod:`A.B` designates a submodule named ``B`` in a package named ``A``. Just like the use of modules saves the authors of different modules from having to worry about each other's global variable names, the use of dotted module names saves the authors of multi-module -packages like NumPy or Pillow from having to worry about each other's module -names. +packages like NumPy or Pillow from having to worry about +each other's module names. Suppose you want to design a collection of modules (a "package") for the uniform handling of sound files and sound data. There are many different sound file From 0b826c9a14b8509ad2e90c29c9b54dc5d0451e43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Delfino?= Date: Sat, 21 Apr 2018 08:47:59 -0300 Subject: [PATCH 7/7] Remove whitespace before comma --- Doc/distutils/introduction.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/distutils/introduction.rst b/Doc/distutils/introduction.rst index 1d4b2df9edd7d7..a38555910361b8 100644 --- a/Doc/distutils/introduction.rst +++ b/Doc/distutils/introduction.rst @@ -193,8 +193,8 @@ modules using the Distutils: module distribution a collection of Python modules distributed together as a single downloadable resource and meant to be installed *en masse*. Examples of some well-known - module distributions are NumPy, SciPy, Pillow - , or mxBase. (This would be called a *package*, except that term is + module distributions are NumPy, SciPy, Pillow, + or mxBase. (This would be called a *package*, except that term is already taken in the Python context: a single module distribution may contain zero, one, or many Python packages.)