Searched refs:ContextDecorator (Results 1 – 5 of 5) sorted by relevance
89 :func:`contextmanager` uses :class:`ContextDecorator` so the context managers97 Use of :class:`ContextDecorator`.278 .. class:: ContextDecorator()282 Context managers inheriting from ``ContextDecorator`` have to implement286 ``ContextDecorator`` is used by :func:`contextmanager`, so you get this289 Example of ``ContextDecorator``::291 from contextlib import ContextDecorator293 class mycontext(ContextDecorator):324 ``ContextDecorator`` lets you instead write::334 using ``ContextDecorator`` as a mixin class::[all …]
60 class ContextDecorator(object): class103 ContextDecorator):
380 class mycontext(ContextDecorator):487 class mycontext(ContextDecorator):499 class mycontext(ContextDecorator):522 class mycontext(somecontext, ContextDecorator):
1235 :class:`~contextlib.ContextDecorator` that is helpful for creating a
13282 - Issue #9110: Addition of ContextDecorator to contextlib, for creating APIs13284 use ContextDecorator.