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

Method setcomptype

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

Source from the content-addressed store, hash-verified

540 return self._nframeswritten
541
542 def setcomptype(self, comptype, compname):
543 if self._datawritten:
544 raise Error('cannot change parameters after starting to write')
545 if comptype not in ('NONE',):
546 raise Error('unsupported compression type')
547 self._comptype = comptype
548 self._compname = compname
549
550 def setformat(self, format):
551 if self._datawritten:

Callers 4

setparamsMethod · 0.95
create_fileMethod · 0.80

Calls 1

ErrorClass · 0.70