Message118195
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:43 | ncoghlan | set | recipients:
+ ncoghlan, pitrou, vstinner, hniksic, eric.araujo, michael.foord |
2010-10-08 12:09:43 | ncoghlan | set | messageid: <1286539783.53.0.929550353906.issue10049@psf.upfronthosting.co.za> |
2010-10-08 12:09:42 | ncoghlan | link | issue10049 messages |
2010-10-08 12:09:41 | ncoghlan | create | |
|