]> granicus.if.org Git - python/commitdiff
Announce the change in the CancelledError inheritance (GH-16730)
authorPhil Jones <philip.graham.jones@googlemail.com>
Sat, 12 Oct 2019 17:46:13 +0000 (17:46 +0000)
committerYury Selivanov <yury@magic.io>
Sat, 12 Oct 2019 17:46:13 +0000 (13:46 -0400)
This is a fairly noticeable change that requires adjustments in
existing asyncio code. It should therefore be announced.

Doc/whatsnew/3.8.rst

index 4cab2f7af118dd6fe27fff64e4397f266b04803a..9bf028deaa9de192a20c73d07ae134c9952ed504 100644 (file)
@@ -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