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 <>
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)
Date User Action Args
2010-10-08 12:09:43ncoghlansetrecipients: + ncoghlan, pitrou, vstinner, hniksic, eric.araujo, michael.foord
2010-10-08 12:09:43ncoghlansetmessageid: <>
2010-10-08 12:09:42ncoghlanlinkissue10049 messages
2010-10-08 12:09:41ncoghlancreate