[Python-checkins] Announce the change in the CancelledError inheritance (GH-16730)

Yury Selivanov webhook-mailer at python.org
Sat Oct 12 13:46:20 EDT 2019


https://github.com/python/cpython/commit/e634da27471a76f4abe685e86e6e302e0ed6b553
commit: e634da27471a76f4abe685e86e6e302e0ed6b553
branch: master
author: Phil Jones <philip.graham.jones at googlemail.com>
committer: Yury Selivanov <yury at magic.io>
date: 2019-10-12T13:46:13-04:00
summary:

Announce the change in the CancelledError inheritance (GH-16730)

This is a fairly noticeable change that requires adjustments in
existing asyncio code. It should therefore be announced.

files:
M Doc/whatsnew/3.8.rst

diff --git a/Doc/whatsnew/3.8.rst b/Doc/whatsnew/3.8.rst
index 4cab2f7af118d..9bf028deaa9de 100644
--- a/Doc/whatsnew/3.8.rst
+++ b/Doc/whatsnew/3.8.rst
@@ -1659,6 +1659,10 @@ Changes in the Python API
   environment variable and does not use :envvar:`HOME`, which is not normally
   set for regular user accounts.
 
+* The Exception :class:`asyncio.CancelledError` now inherits from
+  :class:`BaseException` rather than a :class:`Exception`.
+  (Contributed by Yury Selivanov in :issue:`13528`.)
+
 .. _bpo-36085-whatsnew:
 
 * DLL dependencies for extension modules and DLLs loaded with :mod:`ctypes` on



More information about the Python-checkins mailing list