summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorShantanu <12621235+hauntsaninja@users.noreply.github.com>2023-05-04 16:39:33 (GMT)
committerGitHub <noreply@github.com>2023-05-04 16:39:33 (GMT)
commit09b7695f12f2b44d2df6898407d7e68dd9493ed4 (patch)
treed2446f9106a98a4459dffb53b5a2a4169102d14a /Doc/whatsnew
parent2ba931ff727395cf89b290ed313a8e15db0bfcf1 (diff)
downloadcpython-09b7695f12f2b44d2df6898407d7e68dd9493ed4.zip
cpython-09b7695f12f2b44d2df6898407d7e68dd9493ed4.tar.gz
cpython-09b7695f12f2b44d2df6898407d7e68dd9493ed4.tar.bz2
gh-91896: Deprecate collections.abc.ByteString (#102096)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/3.12.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.12.rst b/Doc/whatsnew/3.12.rst
index 3fe3310a..4a988bf 100644
--- a/Doc/whatsnew/3.12.rst
+++ b/Doc/whatsnew/3.12.rst
@@ -792,6 +792,11 @@ Pending Removal in Python 3.14
(Contributed by Jason R. Coombs and Hugo van Kemenade in :gh:`93963`.)
+* Deprecated :class:`collections.abc.ByteString`.
+ Prefer :class:`Sequence` or :class:`collections.abc.Buffer`.
+ For use in typing, prefer a union, like ``bytes | bytearray``, or :class:`collections.abc.Buffer`.
+ (Contributed by Shantanu Jain in :gh:`91896`.)
+
* Creating immutable types (:data:`Py_TPFLAGS_IMMUTABLETYPE`) with mutable
bases using the C API.