mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
#17487: wave.getparams now returns a namedtuple.
Patch by Claudiu Popa.
This commit is contained in:
parent
3f5ffbee23
commit
671cd3290b
5 changed files with 38 additions and 8 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue