MCPcopy Index your code
hub / github.com/python/cpython / __del__

Method __del__

Lib/asyncio/streams.py:295–304  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

293 return self._closed
294
295 def __del__(self):
296 # Prevent reports about unhandled exceptions.
297 # Better than self._closed._log_traceback = False hack
298 try:
299 closed = self._closed
300 except AttributeError:
301 pass # failed constructor
302 else:
303 if closed.done() and not closed.cancelled():
304 closed.exception()
305
306
307class StreamWriter:

Callers

nothing calls this directly

Calls 3

doneMethod · 0.45
cancelledMethod · 0.45
exceptionMethod · 0.45

Tested by

no test coverage detected