(self, exception_handler=_exception_printer, *, signals=None)
| 264 | # _func_cid_map: {(signal, weakref-to-callback) -> cid} |
| 265 | |
| 266 | def __init__(self, exception_handler=_exception_printer, *, signals=None): |
| 267 | self._signals = None if signals is None else list(signals) # Copy it. |
| 268 | self.exception_handler = exception_handler |
| 269 | self.callbacks = {} |
| 270 | self._cid_gen = itertools.count() |
| 271 | self._func_cid_map = _UnhashDict([]) |
| 272 | # A hidden variable that marks cids that need to be pickled. |
| 273 | self._pickled_cids = set() |
| 274 | |
| 275 | def __getstate__(self): |
| 276 | return { |
nothing calls this directly
no test coverage detected