wave.Wave_read.getcompname()

Wave_read.getcompname() Human-readable version of getcomptype(). Usually 'not compressed' parallels 'NONE'.

wave.Wave_read.close()

Wave_read.close() Close the stream if it was opened by wave, and make the instance unusable. This is called automatically on object collection.

wave.openfp()

wave.openfp(file, mode) A synonym for open(), maintained for backwards compatibility.

wave.open()

wave.open(file, mode=None) If file is a string, open the file by that name, otherwise treat it as a file-like object. mode can be: 'rb' Read only mode. 'wb' Write only mode. Note that it does not allow read/write WAV files. A mode of 'rb' returns a Wave_read object, while a mode of 'wb' returns a Wave_write object. If mode is omitted and a file-like object is passed as file, file.mode is used as the default value for mode. If you pass in a file-like object, the wave object will not clo

wave.Error

exception wave.Error An error raised when something is impossible because it violates the WAV specification or hits an implementation deficiency.

warnings.warn_explicit()

warnings.warn_explicit(message, category, filename, lineno, module=None, registry=None, module_globals=None) This is a low-level interface to the functionality of warn(), passing in explicitly the message, category, filename and line number, and optionally the module name and the registry (which should be the __warningregistry__ dictionary of the module). The module name defaults to the filename with .py stripped; if no registry is passed, the warning is never suppressed. message must be a s

warnings.warn()

warnings.warn(message, category=None, stacklevel=1) Issue a warning, or maybe ignore it or raise an exception. The category argument, if given, must be a warning category class (see above); it defaults to UserWarning. Alternatively message can be a Warning instance, in which case category will be ignored and message.__class__ will be used. In this case the message text will be str(message). This function raises an exception if the particular warning issued is changed into an error by the war

warnings.simplefilter()

warnings.simplefilter(action, category=Warning, lineno=0, append=False) Insert a simple entry into the list of warnings filter specifications. The meaning of the function parameters is as for filterwarnings(), but regular expressions are not needed as the filter inserted always matches any message in any module as long as the category and line number match.

warnings.showwarning()

warnings.showwarning(message, category, filename, lineno, file=None, line=None) Write a warning to a file. The default implementation calls formatwarning(message, category, filename, lineno, line) and writes the resulting string to file, which defaults to sys.stderr. You may replace this function with any callable by assigning to warnings.showwarning. line is a line of source code to be included in the warning message; if line is not supplied, showwarning() will try to read the line specifie

warnings.resetwarnings()

warnings.resetwarnings() Reset the warnings filter. This discards the effect of all previous calls to filterwarnings(), including that of the -W command line options and calls to simplefilter().