Ejemplo n.º 1
0
 def __del__(self):
     "Destroys this DataStructure object."
     try:
         capi.destroy_ds(self._ptr)
     except (AttributeError, TypeError):
         pass  # Some part might already have been garbage collected
Ejemplo n.º 2
0
 def __del__(self):
     "Destroys this DataStructure object."
     if self._ptr and capi:
         capi.destroy_ds(self._ptr)
Ejemplo n.º 3
0
 def __del__(self):
     "Destroys this DataStructure object."
     try:
         capi.destroy_ds(self._ptr)
     except (AttributeError, TypeError):
         pass  # Some part might already have been garbage collected