Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Contexts should have __enter__ and __exit__ methods #558

Open
bgrant opened this issue Aug 5, 2014 · 0 comments
Open

Contexts should have __enter__ and __exit__ methods #558

bgrant opened this issue Aug 5, 2014 · 0 comments
Assignees
Milestone

Comments

@bgrant
Copy link
Contributor

bgrant commented Aug 5, 2014

... so we can use them in with statements.

with Context() as ctxt:
    # do some stuff

We can already hack something with contextlib.closing, but it would be nicer if we didn't have to.

@bgrant bgrant added this to the 0.5 milestone Aug 5, 2014
@bgrant bgrant modified the milestones: 0.5, 0.6 Aug 5, 2014
@bgrant bgrant self-assigned this Aug 11, 2014
@bgrant bgrant modified the milestones: 0.7, 0.6 Oct 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant