MCPcopy Index your code
hub / github.com/RustPython/RustPython / setpos

Method setpos

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

Source from the content-addressed store, hash-verified

352 raise Error('no marks')
353
354 def setpos(self, pos):
355 if pos < 0 or pos > self._nframes:
356 raise Error('position not in range')
357 self._soundpos = pos
358 self._data_seek_needed = 1
359
360 def readframes(self, nframes):
361 if self._data_seek_needed:

Callers 1

test_readMethod · 0.80

Calls 1

ErrorClass · 0.70

Tested by 1

test_readMethod · 0.64