Ensure that exceptions always pickle __context__, __suppress_context__, and __notes__. (Technically __context__ and __suppress_context__ existed before Python 3.11 too, but I'm adding support just now.)
When installing pickle support for an exception instance, recurse on __context__ and ExceptionGroup.exceptions in addition to __cause__.
__context__
,__suppress_context__
, and__notes__
. (Technically__context__
and__suppress_context__
existed before Python 3.11 too, but I'm adding support just now.)__context__
andExceptionGroup.exceptions
in addition to__cause__
.