mirror of
https://github.com/python/cpython.git
synced 2025-11-26 21:33:10 +00:00
Issue #18901: The sunau getparams method now returns a namedtuple rather than
a plain tuple. Patch by Claudiu Popa.
This commit is contained in:
parent
4c6a020a2d
commit
e06a89655a
5 changed files with 47 additions and 9 deletions
|
|
@ -150,8 +150,9 @@ AU_read objects, as returned by :func:`.open` above, have the following methods:
|
|||
|
||||
.. method:: AU_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:: AU_read.readframes(n)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue