예제 #1
0
파일: geometries.py 프로젝트: 007lva/mmddpp
 def __del__(self):
     "Deletes this Geometry."
     if self._ptr: capi.destroy_geom(self._ptr)
예제 #2
0
 def __del__(self):
     "Deletes this Geometry."
     try:
         capi.destroy_geom(self._ptr)
     except (AttributeError, TypeError):
         pass  # Some part might already have been garbage collected
예제 #3
0
 def __del__(self):
     "Deletes this Geometry."
     if self._ptr: capi.destroy_geom(self._ptr)
예제 #4
0
 def __del__(self):
     "Deletes this Geometry."
     try:
         capi.destroy_geom(self._ptr)
     except (AttributeError, TypeError):
         pass  # Some part might already have been garbage collected