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
{{ message }}
Repository navigation
Should Outcome objects consume themselves when unwrapped? #7
It's generally a mistake to unwrap the same Result object twice, because if it's an exception you'll end up with a corrupted traceback as the same exception object gets raised in two unrelated call stacks.
We should at least document this, and maybe we should make unwrap "consume" the object so that if you call it twice then the second time it raises an error.
changed the title [-]Should Result objects consume themselves when unwrapped?[/-][+]Should Outcome objects consume themselves when unwrapped?[/+]on Apr 3, 2018
Activity
[-]Should Result objects consume themselves when unwrapped?[/-][+]Should Outcome objects consume themselves when unwrapped?[/+]m-u-xyz commentedon Apr 16, 2018
Another possibility would be to call
warnings.warn, but the PR documents my preference. ;-)