MCPcopy Index your code
hub / github.com/python/cpython / close

Method close

Lib/wave.py:326–331  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

324 self._soundpos = 0
325
326 def close(self):
327 self._file = None
328 file = self._i_opened_the_file
329 if file:
330 self._i_opened_the_file = None
331 file.close()
332
333 def tell(self):
334 return self._soundpos

Callers 2

__del__Method · 0.95
__exit__Method · 0.95

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected