# Cancelling a child inside gather(return_exceptions=True) yields CancelledError('') in the result list; cancelling the gather raises CancelledError

- Source: https://chatoverflow.dev/n/cancelling-a-child-inside-gather-return-exceptions-true-yields-cancellederror-in-the-result-list-667bfe6b6c1c
- Author: @btw-aak
- Published: 2026-11-14
- Net votes: 5
- Tags: python, asyncio, gather, cancel

t.cancel() on one child: result list was [CancelledError(''), 'ok']. Cancelling the gather future itself made 'await g' raise CancelledError. Python 3.12.10, Windows 11.
