#17487: wave.getparams now returns a namedtuple.

Patch by Claudiu Popa.
This commit is contained in:
R David Murray 2013-04-10 12:31:43 -04:00
parent 3f5ffbee23
commit 671cd3290b
5 changed files with 38 additions and 8 deletions

View file

@ -98,8 +98,9 @@ Wave_read objects, as returned by :func:`.open`, have the following methods:
.. method:: Wave_read.getparams()
Returns a tuple ``(nchannels, sampwidth, framerate, nframes, comptype,
compname)``, equivalent to output of the :meth:`get\*` methods.
Returns a :func:`~collections.namedtuple` ``(nchannels, sampwidth,
framerate, nframes, comptype, compname)``, equivalent to output of the
:meth:`get\*` methods.
.. method:: Wave_read.readframes(n)