From b5ce3193b68569baee207768bade77b0fb1643e7 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Thu, 29 Jun 2023 08:30:10 +1000 Subject: [PATCH] Deprecate Image.USE_CFFI_ACCESS --- docs/deprecations.rst | 7 +++++-- docs/releasenotes/10.0.0.rst | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/docs/deprecations.rst b/docs/deprecations.rst index c79b89663..ce956cade 100644 --- a/docs/deprecations.rst +++ b/docs/deprecations.rst @@ -22,8 +22,8 @@ be removed in Pillow 11 (2024-10-15). This class was only made as a helper to be used internally, so there is no replacement. If you need this functionality though, it is a very short class that can easily be recreated in your own code. -PyAccess -~~~~~~~~ +PyAccess and Image.USE_CFFI_ACCESS +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. deprecated:: 10.0.0 @@ -31,6 +31,9 @@ Since Pillow's C API is now faster than PyAccess on PyPy, :py:mod:`~PIL.PyAccess` has been deprecated and will be removed in Pillow 11.0.0 (2024-10-15). Pillow's C API will now be used by default on PyPy instead. +``Image.USE_CFFI_ACCESS``, for switching from the C API to PyAccess, is +similarly deprecated. + Removed features ---------------- diff --git a/docs/releasenotes/10.0.0.rst b/docs/releasenotes/10.0.0.rst index 94761efaf..9b92e27d8 100644 --- a/docs/releasenotes/10.0.0.rst +++ b/docs/releasenotes/10.0.0.rst @@ -127,13 +127,16 @@ This undocumented method has been removed. Deprecations ============ -PyAccess -^^^^^^^^ +PyAccess and Image.USE_CFFI_ACCESS +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Since Pillow's C API is now faster than PyAccess on PyPy, :py:mod:`~PIL.PyAccess` has been deprecated and will be removed in Pillow 11.0.0 (2024-10-15). Pillow's C API will now be used by default on PyPy instead. +``Image.USE_CFFI_ACCESS``, for switching from the C API to PyAccess, is +similarly deprecated. + API Changes ===========