MCPcopy Index your code
hub / github.com/RustPython/RustPython / _bootstrap

Method _bootstrap

Lib/threading.py:1030–1048  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1028 del self._target, self._args, self._kwargs
1029
1030 def _bootstrap(self):
1031 # Wrapper around the real bootstrap code that ignores
1032 # exceptions during interpreter cleanup. Those typically
1033 # happen when a daemon thread wakes up at an unfortunate
1034 # moment, finds the world around it destroyed, and raises some
1035 # random exception *** while trying to report the exception in
1036 # _bootstrap_inner() below ***. Those random exceptions
1037 # don't help anybody, and they confuse users, so we suppress
1038 # them. We suppress them only when it appears that the world
1039 # indeed has already been destroyed, so that exceptions in
1040 # _bootstrap_inner() during normal business hours are properly
1041 # reported. Also, we only suppress them for daemonic threads;
1042 # if a non-daemonic encounters this, something else is wrong.
1043 try:
1044 self._bootstrap_inner()
1045 except:
1046 if self._daemonic and _sys is None:
1047 return
1048 raise
1049
1050 def _set_ident(self):
1051 self._ident = get_ident()

Callers

nothing calls this directly

Calls 1

_bootstrap_innerMethod · 0.95

Tested by

no test coverage detected