Author steven.daprano
Recipients ncoghlan, steven.daprano
Date 2017-06-28.15:48:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
As discussed on Python-Ideas, there's some interest in a context manager that can convert an exception from one type to another (similarly to the way PEP 479 has StopIteration converted to RuntimeError.

See the thread starting here:

and particularly Nick's comment here:

I've written a recipe on ActiveState:

which acts as both a context manager and function decorator. That can be used as proof-of-concept or as a basis for a PR.
Date User Action Args
2017-06-28 15:48:31steven.dapranosetrecipients: + steven.daprano, ncoghlan
2017-06-28 15:48:31steven.dapranosetmessageid: <>
2017-06-28 15:48:31steven.dapranolinkissue30792 messages
2017-06-28 15:48:30steven.dapranocreate