Irit Katriel <[email protected]> added the comment:
There used to be a contextlib.nested function which did this, and it was deprecated because there were problems with it. See here: https://docs.python.org/2/library/contextlib.html#contextlib.nested ---------- nosy: +iritkatriel _______________________________________ Python tracker <[email protected]> <https://bugs.python.org/issue42424> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
