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 <1328735115.69.0.86637794823.issue10049@psf.upfronthosting.co.za>
In-reply-to
Content
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"?
History
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: <1328735115.69.0.86637794823.issue10049@psf.upfronthosting.co.za>
2012-02-08 21:05:15Alexander.Joneslinkissue10049 messages
2012-02-08 21:05:14Alexander.Jonescreate