[Python-Dev] Iterator version of contextlib.nested
Benjamin Peterson
benjamin at python.org
Mon Jun 15 21:29:22 CEST 2009
2009/6/15 Raymond Hettinger <python at rcn.com>:
> 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).
> Right now, the current example just shows the hazardous pattern
> that is much better served by the new with-statement syntax.
+1 I think this should be done anyway.
--
Regards,
Benjamin
More information about the Python-Dev
mailing list