summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew/3.8.rst
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2020-07-24 14:19:13 (GMT)
committerGitHub <noreply@github.com>2020-07-24 14:19:13 (GMT)
commitba07d4a0c30b4d817b4c31a052388a68cc17bc3b (patch)
treeebc9664fd0a6e646a2dfbbb10904c26b92e91e21 /Doc/whatsnew/3.8.rst
parent4ff8e5ba4fef7f7d0fc1b1872ccb91bc3fd1294d (diff)
downloadcpython-ba07d4a0c30b4d817b4c31a052388a68cc17bc3b.zip
cpython-ba07d4a0c30b4d817b4c31a052388a68cc17bc3b.tar.gz
cpython-ba07d4a0c30b4d817b4c31a052388a68cc17bc3b.tar.bz2
bpo-32528: Document the change in inheritance of asyncio.CancelledError (GH-21474)
GH-msg373510 [bpo-32528]()/GH-13528 changed `asyncio.CancelledError` such that it no longer inherits from `concurrent.futures.CancelledError`. As this affects existing code, specifically when catching the latter instead of the former in exception handling, it should be documented in the "What's new in 3.8?" document. Automerge-Triggered-By: @1st1 (cherry picked from commit 2a5181829af394b82e8e8c917183c709ee72a2b7) Co-authored-by: JustAnotherArchivist <JustAnotherArchivist@users.noreply.github.com>
Diffstat (limited to 'Doc/whatsnew/3.8.rst')
-rw-r--r--Doc/whatsnew/3.8.rst6
1 files changed, 4 insertions, 2 deletions
diff --git a/Doc/whatsnew/3.8.rst b/Doc/whatsnew/3.8.rst
index fdfc0a8..61aca47 100644
--- a/Doc/whatsnew/3.8.rst
+++ b/Doc/whatsnew/3.8.rst
@@ -646,7 +646,8 @@ loop on every invocation:
(Contributed by Yury Selivanov in :issue:`37028`.)
The exception :class:`asyncio.CancelledError` now inherits from
-:class:`BaseException` rather than :class:`Exception`.
+:class:`BaseException` rather than :class:`Exception` and no longer inherits
+from :class:`concurrent.futures.CancelledError`.
(Contributed by Yury Selivanov in :issue:`32528`.)
On Windows, the default event loop is now :class:`~asyncio.ProactorEventLoop`.
@@ -1951,7 +1952,8 @@ Changes in the Python API
(Contributed by Anthony Sottile in :issue:`36264`.)
* The exception :class:`asyncio.CancelledError` now inherits from
- :class:`BaseException` rather than :class:`Exception`.
+ :class:`BaseException` rather than :class:`Exception` and no longer inherits
+ from :class:`concurrent.futures.CancelledError`.
(Contributed by Yury Selivanov in :issue:`32528`.)
* The function :func:`asyncio.wait_for` now correctly waits for cancellation