I can't remove file, created by memmap
<p>I can't remove file created <code>numpy.memmap</code> funtion</p>

<pre><code>class MyClass
 def __init__(self):    
  self.fp = np.memmap(filename, dtype='float32', mode='w+', shape=flushed_chunk_shape)
    ...
 def __del__(self):   
  del self.fp
  os.remove(filename)
</code></pre>

<p>When I run <code>del myclass</code> (instanse of MyClass) I've got error <code>WindowsError: [Error 32] The process cannot access the file</code>. If I use <code>memmap</code> and deleting the file in no objected oriented way everything ok. So I consider trouble in destructor. But why it happens?</p>