This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ncoghlan
Recipients Alexander.Jones, daniel.urban, eric.araujo, georg.brandl, giampaolo.rodola, hniksic, michael.foord, ncoghlan, pitrou, r.david.murray, rhettinger, vstinner
Date 2012-02-10.13:58:29
SpamBayes Score 0.020994416
Marked as misclassified No
Message-id <1328882310.12.0.743271583497.issue10049@psf.upfronthosting.co.za>
In-reply-to
Content
FWIW, it's likely I'll be adding contextlib.ContextStack (see [1]) for 3.3. While it's far from the primary use case, that API also serves as a "no-op" context manager (if you never register any contexts or callbacks, the __exit__ impl does nothing).

[1] http://contextlib2.readthedocs.org/en/latest/index.html#contextlib2.ContextStack
History
Date User Action Args
2012-02-10 13:58:30ncoghlansetrecipients: + ncoghlan, georg.brandl, rhettinger, pitrou, vstinner, giampaolo.rodola, hniksic, eric.araujo, r.david.murray, michael.foord, daniel.urban, Alexander.Jones
2012-02-10 13:58:30ncoghlansetmessageid: <1328882310.12.0.743271583497.issue10049@psf.upfronthosting.co.za>
2012-02-10 13:58:29ncoghlanlinkissue10049 messages
2012-02-10 13:58:29ncoghlancreate