Are context managers safe with ansychronous exceptions or signals

Hello Chris :waving_hand:

Answering the title: nope :man_shrugging:

There’s a mention of this in the docs of the signal module: signal — Set handlers for asynchronous events — Python 3.14.5 documentation

This issue also came up fairly recently in another thread Cancelling threads