[Python-Dev] Iterator version of contextlib.nested

Terry Reedy tjreedy at udel.edu
Mon Jun 15 22:36:13 CEST 2009


Raymond Hettinger wrote:

> P.S.  If you switch to PendingDeprecationWarning, the example
> in the docs should probably be switched to show the one valid
> use case (passing in a prepackaged nest of context managers).

It could even suggest that it only be used for this, since it may 
disappear, and that other uses should use the new syntax.  That would 
give people the best chance of writing future-proof code when they can.



More information about the Python-Dev mailing list