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 pitrou
Recipients eric.araujo, hniksic, michael.foord, ncoghlan, pitrou, vstinner
Date 2010-10-08.11:54:18
SpamBayes Score 2.8437024e-05
Marked as misclassified No
Message-id <1286538855.17666.2.camel@localhost.localdomain>
In-reply-to <1286538724.86.0.251036544124.issue10049@psf.upfronthosting.co.za>
Content
> @Antoine: it is true that a null context manager can be easily
> defined, but it does requires a separate generator definition, often
> repeated in different modules.  This is markedly less elegant than
> just using contextlib.null() in an expression.

But you can use mymodule.null() where mymodule is a module gathering
common constructs of yours.
History
Date User Action Args
2010-10-08 11:54:20pitrousetrecipients: + pitrou, ncoghlan, vstinner, hniksic, eric.araujo, michael.foord
2010-10-08 11:54:18pitroulinkissue10049 messages
2010-10-08 11:54:18pitroucreate