MCPcopy Create free account
hub / github.com/capstone-engine/capstone / __del__

Method __del__

bindings/python/capstone/__init__.py:958–965  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

956
957 # destructor to be called automatically when object is destroyed.
958 def __del__(self):
959 if self.csh:
960 try:
961 status = _cs.cs_close(ctypes.byref(self.csh))
962 if status != CS_ERR_OK:
963 raise CsError(status)
964 except: # _cs might be pulled from under our feet
965 pass
966
967
968 # def option(self, opt_type, opt_value):

Callers

nothing calls this directly

Calls 2

CsErrorClass · 0.85
cs_closeMethod · 0.80

Tested by

no test coverage detected