Giampaolo Rodola' added the comment: I think I have already proposed something similar in past but I can't find any reference on the tracker (so maybe I didn't after all). BTW I have something like this [1] in a "utils" module I use across different projects and I would definitively welcome an inclusion in the stdlib.
[1] a modified version of http://dabeaz.blogspot.it/2010/02/function-that-works-as-context-manager.html ---------- _______________________________________ Python tracker <[email protected]> <http://bugs.python.org/issue19495> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
