Kaydet (Commit) cbf479ae authored tarafından R David Murray's avatar R David Murray

whatsnew: sunau/aifc/wave writeframes[raw] accept any bytes-like (#8311)

üst 5d6240e8
...@@ -226,7 +226,7 @@ number of frames must be filled in. ...@@ -226,7 +226,7 @@ number of frames must be filled in.
file parameters have been set. file parameters have been set.
.. versionchanged:: 3.4 .. versionchanged:: 3.4
Any :term:`bytes-like object`\ s are now accepted. Any :term:`bytes-like object` is now accepted.
.. method:: aifc.writeframesraw(data) .. method:: aifc.writeframesraw(data)
...@@ -235,7 +235,7 @@ number of frames must be filled in. ...@@ -235,7 +235,7 @@ number of frames must be filled in.
updated. updated.
.. versionchanged:: 3.4 .. versionchanged:: 3.4
Any :term:`bytes-like object`\ s are now accepted. Any :term:`bytes-like object` is now accepted.
.. method:: aifc.close() .. method:: aifc.close()
......
...@@ -251,7 +251,7 @@ AU_write objects, as returned by :func:`.open` above, have the following methods ...@@ -251,7 +251,7 @@ AU_write objects, as returned by :func:`.open` above, have the following methods
Write audio frames, without correcting *nframes*. Write audio frames, without correcting *nframes*.
.. versionchanged:: 3.4 .. versionchanged:: 3.4
Any :term:`bytes-like object`\ s are now accepted. Any :term:`bytes-like object` is now accepted.
.. method:: AU_write.writeframes(data) .. method:: AU_write.writeframes(data)
...@@ -259,7 +259,7 @@ AU_write objects, as returned by :func:`.open` above, have the following methods ...@@ -259,7 +259,7 @@ AU_write objects, as returned by :func:`.open` above, have the following methods
Write audio frames and make sure *nframes* is correct. Write audio frames and make sure *nframes* is correct.
.. versionchanged:: 3.4 .. versionchanged:: 3.4
Any :term:`bytes-like object`\ s are now accepted. Any :term:`bytes-like object` is now accepted.
.. method:: AU_write.close() .. method:: AU_write.close()
......
...@@ -226,7 +226,7 @@ Wave_write objects, as returned by :func:`.open`, have the following methods: ...@@ -226,7 +226,7 @@ Wave_write objects, as returned by :func:`.open`, have the following methods:
Write audio frames, without correcting *nframes*. Write audio frames, without correcting *nframes*.
.. versionchanged:: 3.4 .. versionchanged:: 3.4
Any :term:`bytes-like object`\ s are now accepted. Any :term:`bytes-like object` is now accepted.
.. method:: Wave_write.writeframes(data) .. method:: Wave_write.writeframes(data)
...@@ -237,7 +237,7 @@ Wave_write objects, as returned by :func:`.open`, have the following methods: ...@@ -237,7 +237,7 @@ Wave_write objects, as returned by :func:`.open`, have the following methods:
previously set value for *nframes*. previously set value for *nframes*.
.. versionchanged:: 3.4 .. versionchanged:: 3.4
Any :term:`bytes-like object`\ s are now accepted. Any :term:`bytes-like object` is now accepted.
Note that it is invalid to set any parameters after calling :meth:`writeframes` Note that it is invalid to set any parameters after calling :meth:`writeframes`
......
...@@ -540,7 +540,7 @@ Using ``ABC`` as a base class has essentially the same effect as specifying ...@@ -540,7 +540,7 @@ Using ``ABC`` as a base class has essentially the same effect as specifying
aifc aifc
---- ----
The :meth:`~aifc.getparams` method now returns a namedtuple rather than a The :meth:`~aifc.aifc.getparams` method now returns a namedtuple rather than a
plain tuple. (Contributed by Claudiu Popa in :issue:`17818`.) plain tuple. (Contributed by Claudiu Popa in :issue:`17818`.)
:func:`aifc.open` now supports the context manager protocol: when used in a :func:`aifc.open` now supports the context manager protocol: when used in a
...@@ -548,6 +548,10 @@ plain tuple. (Contributed by Claudiu Popa in :issue:`17818`.) ...@@ -548,6 +548,10 @@ plain tuple. (Contributed by Claudiu Popa in :issue:`17818`.)
object will be called automatically at the end of the block. (Contributed by object will be called automatically at the end of the block. (Contributed by
Serhiy Storchacha in :issue:`16486`.) Serhiy Storchacha in :issue:`16486`.)
The :meth:`~aifc.aifc.writeframesraw` and :meth:`~aifc.aifc.writeframes`
methods now accept any :term:`bytes-like object`. (Contributed by Serhiy
Storchaka in :issue:`8311`.)
argparse argparse
-------- --------
...@@ -1300,6 +1304,10 @@ in :issue:`18878`.) ...@@ -1300,6 +1304,10 @@ in :issue:`18878`.)
support for writing 24 sample using the module. (Contributed by support for writing 24 sample using the module. (Contributed by
Serhiy Storchaka in :issue:`19261`.) Serhiy Storchaka in :issue:`19261`.)
The :meth:`~sunau.AU_write.writeframesraw` and
:meth:`~sunau.AU_write.writeframes` methods now accept any :term:`bytes-like
object`. (Contributed by Serhiy Storchaka in :issue:`8311`.)
sys sys
--- ---
...@@ -1443,6 +1451,10 @@ by Claudiu Popa in :issue:`17616`.) ...@@ -1443,6 +1451,10 @@ by Claudiu Popa in :issue:`17616`.)
<wave-write-objects>`. (Contributed by David Jones, Guilherme Polo, and Serhiy <wave-write-objects>`. (Contributed by David Jones, Guilherme Polo, and Serhiy
Storchaka in :issue:`5202`.) Storchaka in :issue:`5202`.)
The :meth:`~wave.Wave_write.writeframesraw` and
:meth:`~wave.Wave_write.writeframes` methods now accept any :term:`bytes-like
object`. (Contributed by Serhiy Storchaka in :issue:`8311`.)
weakref weakref
------- -------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment