enthought / enthought/distarray

Contexts should have __enter__ and __exit__ methods

Open
#558 0 comments 0 reactions 1 assignee Claimed by @bgrant View on GitHub
easy enhancement
Dominant language
Python
Stars
5
Forks
1
PR merge metrics
No merged PRs in 30d

Description

... 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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.