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 Alexander.Jones
Recipients Alexander.Jones, daniel.urban, eric.araujo, georg.brandl, giampaolo.rodola, hniksic, michael.foord, ncoghlan, pitrou, r.david.murray, rhettinger, vstinner
Date 2012-02-08.21:05:14
SpamBayes Score 0.0026561746
Marked as misclassified No
Message-id <>
Not having this as a standard idiom makes it very tempting to just do copy-paste coding as in hniksic's example. Who likes to invent their own library for generic language-supporting idioms?

What about an alternative of giving NoneType empty enter and exit methods? So instead of a 'null' CM you can just use "with None"?
Date User Action Args
2012-02-08 21:05:15Alexander.Jonessetrecipients: + Alexander.Jones, georg.brandl, rhettinger, ncoghlan, pitrou, vstinner, giampaolo.rodola, hniksic, eric.araujo, r.david.murray, michael.foord, daniel.urban
2012-02-08 21:05:15Alexander.Jonessetmessageid: <>
2012-02-08 21:05:15Alexander.Joneslinkissue10049 messages
2012-02-08 21:05:14Alexander.Jonescreate