[issue6288] Update contextlib.nested docs in light of deprecation

Ask Solem report at bugs.python.org
Wed Jul 27 12:02:44 CEST 2011


Ask Solem <ask at celeryproject.org> added the comment:

How would you replace the following functionality
with the multiple with statement syntax:


    x = (A(), B(), C())
    with nested(*x) as context:
        ....


It seems to me that nested() is still useful for this particular
use case.

----------
nosy: +asksol

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6288>
_______________________________________


More information about the Python-bugs-list mailing list