Closed mloccy closed 9 years ago
+1 on this request. That being said, you can already do this with contextlib.closing
:
import contextlib
with contextlib.closing(beanstalkc.Connection(host='localhost', port=11300)) as beanstalk:
pass
Implemtend in 87dc06dc7ebdefd4043e9e58cb69a086535bb38b.
Cannot do nice things like: