[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>

More information about the Python-bugs-list mailing list