[issue5491] Clarify contextlib.nested semantics

2009-03-15 Thread Georg Brandl
Georg Brandl added the comment: Thanks, committed in r70390. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue5491] Clarify contextlib.nested semantics

2009-03-14 Thread Nick Coghlan
New submission from Nick Coghlan : Current doc example: with nested(A, B, C) as (X, Y, Z): do_something() with A as X: with B as Y: with C as Z: do_something() Recommended docs change: with nested(A(), B(), C()) as (X, Y, Z): do_something() m1, m2, m3 = A(), B