Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e634da2

Browse files
pgjones1st1
authored andcommitted
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.
1 parent 822922a commit e634da2

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Doc/whatsnew/3.8.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1659,6 +1659,10 @@ Changes in the Python API
16591659
environment variable and does not use :envvar:`HOME`, which is not normally
16601660
set for regular user accounts.
16611661

1662+
* The Exception :class:`asyncio.CancelledError` now inherits from
1663+
:class:`BaseException` rather than a :class:`Exception`.
1664+
(Contributed by Yury Selivanov in :issue:`13528`.)
1665+
16621666
.. _bpo-36085-whatsnew:
16631667

16641668
* DLL dependencies for extension modules and DLLs loaded with :mod:`ctypes` on

0 commit comments

Comments
 (0)