enthought / enthought/distarray

Contexts should have __enter__ and __exit__ methods

Aperta
#558 0 commenti 0 reazioni 1 assegnatario Rivendicata da @bgrant Vedi su GitHub
easy enhancement
Lingua principale
Python
Stelle
5
Fork
1
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.