From 21eec5ce7599f199c32f8042b406eb31a90036f5 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Sat, 7 Oct 2023 14:48:19 +1100 Subject: [PATCH] Added release notes for #7355 --- docs/releasenotes/10.1.0.rst | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/docs/releasenotes/10.1.0.rst b/docs/releasenotes/10.1.0.rst index af995dc15..31b3e57ec 100644 --- a/docs/releasenotes/10.1.0.rst +++ b/docs/releasenotes/10.1.0.rst @@ -24,10 +24,16 @@ TODO API Changes =========== -TODO -^^^^ +Accept a list in getpixel() +^^^^^^^^^^^^^^^^^^^^^^^^^^^ -TODO +py:meth:`~PIL.Image.Image.getpixel` now accepts a list of coordinates, as well +as a tuple. :: + + from PIL import Image + im = Image.new("RGB", (1, 1)) + im.getpixel((0, 0)) + im.getpixel([0, 0]) API Additions =============