MCPcopy Create free account
hub / github.com/numpy/numpy / __del__

Method __del__

numpy/lib/_datasource.py:256–261  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

254 self._istmpdest = True
255
256 def __del__(self):
257 # Remove temp directories
258 if hasattr(self, '_istmpdest') and self._istmpdest:
259 import shutil
260
261 shutil.rmtree(self._destpath)
262
263 def _iszip(self, filename):
264 """Test if the filename is a zip file by looking at the file extension.

Callers 2

test_del_attr_handlingFunction · 0.95
__del__Method · 0.45

Calls

no outgoing calls

Tested by 1

test_del_attr_handlingFunction · 0.76