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

Method setcomptype

Lib/wave.py:526–532  ·  view source on GitHub ↗
(self, comptype, compname)

Source from the content-addressed store, hash-verified

524 return self._nframeswritten
525
526 def setcomptype(self, comptype, compname):
527 if self._datawritten:
528 raise Error('cannot change parameters after starting to write')
529 if comptype not in ('NONE',):
530 raise Error('unsupported compression type')
531 self._comptype = comptype
532 self._compname = compname
533
534 def getcomptype(self):
535 return self._comptype

Callers 5

setparamsMethod · 0.95
create_fileMethod · 0.80

Calls 1

ErrorClass · 0.70