Skip to content

Context manager to override call-time settings? #59

@tmontes

Description

@tmontes

Idea from #35.

When completing several calls with the same call-time override settings instead of:

w(returns=<bool>, ignore_failures=<bool>).first_callable()
w(returns=<bool>, ignore_failures=<bool>).second_callable()

We go for a context manager as in:

with w(returns=<bool>, ignore_failures=<bool>) as w:
    w.first_callable()
    w.second_callable()

PS: Not sure if the proposed w rebinding in the with statement is achievable/desirable. Maybe.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or capability.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions