MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / close

Method close

pydevd_attach_to_process/winappdbg/win32/kernel32.py:682–692  ·  view source on GitHub ↗

Closes the Win32 handle.

(self)

Source from the content-addressed store, hash-verified

680 return HANDLE(value)
681
682 def close(self):
683 """
684 Closes the Win32 handle.
685 """
686 if self.bOwnership and self.value not in (None, INVALID_HANDLE_VALUE):
687 if Handle.__bLeakDetection: # XXX DEBUG
688 print("CLOSE HANDLE (%d) %r" % (self.value, self))
689 try:
690 self._close()
691 finally:
692 self._value = None
693
694 def _close(self):
695 """

Callers 4

__del__Method · 0.95
__exit__Method · 0.95
CloseServiceHandleFunction · 0.45
CloseHandleFunction · 0.45

Calls 1

_closeMethod · 0.95

Tested by

no test coverage detected