Skip to content

Should Result objects consume themselves when unwrapped? #466

Description

@njsmith

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions