# contextlib.ContextDecorator - pydoc - phpman

Help on class ContextDecorator in contextlib:

contextlib.ContextDecorator = class ContextDecorator(builtins.object)
 |  A base class or mixin that enables context managers to work as decorators.
 |
 |  Methods defined here:
 |
 |  __call__(self, func)
 |      Call self as a function.
 |
 |  ----------------------------------------------------------------------
 |  Data descriptors defined here:
 |
 |  __dict__
 |      dictionary for instance variables (if defined)
 |
 |  __weakref__
 |      list of weak references to the object (if defined)

