Irit Katriel <iritkatr...@yahoo.com> 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 <rep...@bugs.python.org>
<https://bugs.python.org/issue42424>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to