summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorDong-hee Na <donghee.na@python.org>2021-08-23 10:01:51 (GMT)
committerGitHub <noreply@github.com>2021-08-23 10:01:51 (GMT)
commit24b63c695ae0a95b06379eaadace66735abac1e2 (patch)
tree8bc8bbc38511c504860b494e125c232f51457638 /Misc
parent6082bb5addab93755ab6e2bd2ed6021b391e10d1 (diff)
downloadcpython-24b63c695ae0a95b06379eaadace66735abac1e2.zip
cpython-24b63c695ae0a95b06379eaadace66735abac1e2.tar.gz
cpython-24b63c695ae0a95b06379eaadace66735abac1e2.tar.bz2
bpo-24234: Implement bytes.__bytes__ (GH-27901)
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Core and Builtins/2021-08-23-10-36-55.bpo-24234.MGVUQi.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2021-08-23-10-36-55.bpo-24234.MGVUQi.rst b/Misc/NEWS.d/next/Core and Builtins/2021-08-23-10-36-55.bpo-24234.MGVUQi.rst
new file mode 100644
index 0000000..3f724da
--- /dev/null
+++ b/Misc/NEWS.d/next/Core and Builtins/2021-08-23-10-36-55.bpo-24234.MGVUQi.rst
@@ -0,0 +1,3 @@
+Implement the :meth:`__bytes__` special method on the :class:`bytes` type,
+so a bytes object ``b`` passes an ``isinstance(b, typing.SupportsBytes)``
+check.