Package grassyknoll :: Package concurrent :: Module Wrappers :: Class NullContextManager
[hide private]

Class NullContextManager

source code


a null context manager that simply returns what it was constructed with.

Instance Methods [hide private]
 
__init__(self, func)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__enter__(self) source code
 
__exit__(self, type, value, traceback) source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Class Methods [hide private]

Inherited from lib.meta.FactoryMixin: factory

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, func)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Parameters:
  • func (callable) - the func to wrap
Overrides: object.__init__
(inherited documentation)