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

Method setpos

Lib/wave.py:362–366  ·  view source on GitHub ↗
(self, pos)

Source from the content-addressed store, hash-verified

360 self.getcomptype(), self.getcompname())
361
362 def setpos(self, pos):
363 if pos < 0 or pos > self._nframes:
364 raise Error('position not in range')
365 self._soundpos = pos
366 self._data_seek_needed = 1
367
368 def readframes(self, nframes):
369 if self._data_seek_needed:

Callers 6

writeMethod · 0.45
test_readMethod · 0.45
startFunction · 0.45
__init__Method · 0.45
stepMethod · 0.45
mainFunction · 0.45

Calls 1

ErrorClass · 0.70

Tested by 1

test_readMethod · 0.36