mirror of
https://github.com/python/cpython.git
synced 2025-10-12 18:02:39 +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)
|
||||
|
|
|
@ -365,6 +365,13 @@ Streaming struct unpacking using :func:`struct.iter_unpack`.
|
|||
(Contributed by Antoine Pitrou in :issue:`17804`.)
|
||||
|
||||
|
||||
sunau
|
||||
-----
|
||||
|
||||
The :meth:`~sunau.getparams` method now returns a namedtuple rather than a
|
||||
plain tuple. (Contributed by Claudiu Popa in :issue:`18901`.)
|
||||
|
||||
|
||||
urllib
|
||||
------
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue