[Python-Dev] Iterator version of contextlib.nested (original) (raw)
Benjamin Peterson benjamin at python.org
Mon Jun 15 21:29:22 CEST 2009
- Previous message: [Python-Dev] Iterator version of contextlib.nested
- Next message: [Python-Dev] Iterator version of contextlib.nested
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] Iterator version of contextlib.nested
- Next message: [Python-Dev] Iterator version of contextlib.nested
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]