Lines Matching refs:__exit__
24 :meth:`object.__enter__` and :meth:`object.__exit__`. A default
26 ``self`` while :meth:`object.__exit__` is an abstract method which by default
48 create a class or separate :meth:`__enter__` and :meth:`__exit__` methods.
283 ``__enter__`` and ``__exit__`` as normal. ``__exit__`` retains its optional
298 def __exit__(self, *exc):
342 def __exit__(self, *exc):
394 Enters a new context manager and adds its :meth:`__exit__` method to
403 Adds a context manager's :meth:`__exit__` method to the callback stack.
407 :meth:`__exit__` method.
411 :meth:`__exit__` method and adds it directly to the callback stack.
414 same way context manager :meth:`__exit__` methods can.
530 the :keyword:`with` statement body or the context manager's ``__exit__``
593 def __exit__(self, *exc_details):
696 def __exit__(self, exc_type, exc, exc_tb):