Home
last modified time | relevance | path

Searched refs:exc_details (Results 1 – 5 of 5) sorted by relevance

/external/python/cpython3/Lib/
Dcontextlib.py468 def __exit__(self, *exc_details): argument
469 received_exc = exc_details[0] is not None
496 if cb(*exc_details):
499 exc_details = (None, None, None)
503 _fix_exception_context(new_exc_details[1], exc_details[1])
505 exc_details = new_exc_details
510 fixed_ctx = exc_details[1].__context__
511 raise exc_details[1]
513 exc_details[1].__context__ = fixed_ctx
605 async def __aexit__(self, *exc_details): argument
[all …]
/external/python/cpython3/Lib/test/
Dtest_contextlib_async.py289 def __exit__(self, *exc_details): argument
290 return self.run_coroutine(self.__aexit__(*exc_details))
337 async def _suppress_exc(*exc_details): argument
348 async def __aexit__(self, *exc_details): argument
349 await self.check_exc(*exc_details)
373 async def __aexit__(self, *exc_details): argument
397 async def suppress_exc(*exc_details): argument
399 saved_details = exc_details
Dtest_contextlib.py604 def _suppress_exc(*exc_details): argument
615 def __exit__(self, *exc_details): argument
616 self.check_exc(*exc_details)
638 def __exit__(self, *exc_details): argument
696 def __exit__(self, *exc_details): argument
705 def __exit__(self, *exc_details): argument
714 def __exit__(self, *exc_details): argument
715 type(self).saved_details = exc_details
742 def suppress_exc(*exc_details): argument
744 saved_details = exc_details
[all …]
/external/python/cpython3/Lib/importlib/
D_bootstrap_external.py438 def _classify_pyc(data, name, exc_details): argument
458 raise ImportError(message, **exc_details)
467 raise ImportError(message, **exc_details)
472 exc_details): argument
493 raise ImportError(message, **exc_details)
496 raise ImportError(f'bytecode is stale for {name!r}', **exc_details)
499 def _validate_hash_pyc(data, source_hash, name, exc_details): argument
519 **exc_details,
822 exc_details = {
827 flags = _classify_pyc(data, fullname, exc_details)
[all …]
/external/python/cpython3/Doc/library/
Dcontextlib.rst593 def __exit__(self, *exc_details):