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 eric.araujo, hniksic, michael.foord, ncoghlan, pitrou, vstinner
Date 2010-10-08.12:09:41
SpamBayes Score 0.0073701683
Marked as misclassified No
Message-id <1286539783.53.0.929550353906.issue10049@psf.upfronthosting.co.za>
In-reply-to
Content
Actually, the singleton idea isn't a bad one, but I'd go one step further and skip the factory function as well. So change that to be:

class NullContext():
   ... # as per nullcontext in my last message

nullcontext = NullContext()

(with the example in the docstring adjusted accordingly)
History
Date User Action Args
2010-10-08 12:09:43ncoghlansetrecipients: + ncoghlan, pitrou, vstinner, hniksic, eric.araujo, michael.foord
2010-10-08 12:09:43ncoghlansetmessageid: <1286539783.53.0.929550353906.issue10049@psf.upfronthosting.co.za>
2010-10-08 12:09:42ncoghlanlinkissue10049 messages
2010-10-08 12:09:41ncoghlancreate