"Wolfram Fenske" <int2k at gmx.net> writes: > Yes, I wrote about it in another post. It was introduced in Python > 2.5. And if it hadn't been I'd still have to write code like this. You could do something with decorators that's not too bad. You'd end up writing: @withConnection def some_func(): do_whatever_stuff ()