(self)
| 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): |