You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
trio.Cancelled can't be constructed directly so it can't be pickled. Usually this is fine as no one needs to pickle and move around a trio.Cancelled object. But sometimes it gets trapped in some other exception's __context__ or __cause__.
trio.Cancelled
can't be constructed directly so it can't be pickled. Usually this is fine as no one needs to pickle and move around atrio.Cancelled
object. But sometimes it gets trapped in some other exception's__context__
or__cause__
.One example is
(By default
__context__
of an exception doesn't get pickled buttblib.pickling_support
adds it, which I think is reasonable?)And now we can't pickle this
TooSlowError
anymore.Here's the full example:
Can we add pickle support for
trio.Cancelled
?The text was updated successfully, but these errors were encountered: