Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cbf479a

Browse files
committed
whatsnew: sunau/aifc/wave writeframes[raw] accept any bytes-like (#8311)
1 parent 5d6240e commit cbf479a

4 files changed

Lines changed: 19 additions & 7 deletions

File tree

Doc/library/aifc.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ number of frames must be filled in.
226226
file parameters have been set.
227227

228228
.. versionchanged:: 3.4
229-
Any :term:`bytes-like object`\ s are now accepted.
229+
Any :term:`bytes-like object` is now accepted.
230230

231231

232232
.. method:: aifc.writeframesraw(data)
@@ -235,7 +235,7 @@ number of frames must be filled in.
235235
updated.
236236

237237
.. versionchanged:: 3.4
238-
Any :term:`bytes-like object`\ s are now accepted.
238+
Any :term:`bytes-like object` is now accepted.
239239

240240

241241
.. method:: aifc.close()

Doc/library/sunau.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,15 +251,15 @@ AU_write objects, as returned by :func:`.open` above, have the following methods
251251
Write audio frames, without correcting *nframes*.
252252

253253
.. versionchanged:: 3.4
254-
Any :term:`bytes-like object`\ s are now accepted.
254+
Any :term:`bytes-like object` is now accepted.
255255

256256

257257
.. method:: AU_write.writeframes(data)
258258

259259
Write audio frames and make sure *nframes* is correct.
260260

261261
.. versionchanged:: 3.4
262-
Any :term:`bytes-like object`\ s are now accepted.
262+
Any :term:`bytes-like object` is now accepted.
263263

264264

265265
.. method:: AU_write.close()

Doc/library/wave.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ Wave_write objects, as returned by :func:`.open`, have the following methods:
226226
Write audio frames, without correcting *nframes*.
227227

228228
.. versionchanged:: 3.4
229-
Any :term:`bytes-like object`\ s are now accepted.
229+
Any :term:`bytes-like object` is now accepted.
230230

231231

232232
.. method:: Wave_write.writeframes(data)
@@ -237,7 +237,7 @@ Wave_write objects, as returned by :func:`.open`, have the following methods:
237237
previously set value for *nframes*.
238238

239239
.. versionchanged:: 3.4
240-
Any :term:`bytes-like object`\ s are now accepted.
240+
Any :term:`bytes-like object` is now accepted.
241241

242242

243243
Note that it is invalid to set any parameters after calling :meth:`writeframes`

Doc/whatsnew/3.4.rst

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,14 +540,18 @@ Using ``ABC`` as a base class has essentially the same effect as specifying
540540
aifc
541541
----
542542

543-
The :meth:`~aifc.getparams` method now returns a namedtuple rather than a
543+
The :meth:`~aifc.aifc.getparams` method now returns a namedtuple rather than a
544544
plain tuple. (Contributed by Claudiu Popa in :issue:`17818`.)
545545

546546
:func:`aifc.open` now supports the context manager protocol: when used in a
547547
:keyword:`with` block, the :meth:`~aifc.aifc.close` method of the returned
548548
object will be called automatically at the end of the block. (Contributed by
549549
Serhiy Storchacha in :issue:`16486`.)
550550

551+
The :meth:`~aifc.aifc.writeframesraw` and :meth:`~aifc.aifc.writeframes`
552+
methods now accept any :term:`bytes-like object`. (Contributed by Serhiy
553+
Storchaka in :issue:`8311`.)
554+
551555

552556
argparse
553557
--------
@@ -1300,6 +1304,10 @@ in :issue:`18878`.)
13001304
support for writing 24 sample using the module. (Contributed by
13011305
Serhiy Storchaka in :issue:`19261`.)
13021306

1307+
The :meth:`~sunau.AU_write.writeframesraw` and
1308+
:meth:`~sunau.AU_write.writeframes` methods now accept any :term:`bytes-like
1309+
object`. (Contributed by Serhiy Storchaka in :issue:`8311`.)
1310+
13031311

13041312
sys
13051313
---
@@ -1443,6 +1451,10 @@ by Claudiu Popa in :issue:`17616`.)
14431451
<wave-write-objects>`. (Contributed by David Jones, Guilherme Polo, and Serhiy
14441452
Storchaka in :issue:`5202`.)
14451453

1454+
The :meth:`~wave.Wave_write.writeframesraw` and
1455+
:meth:`~wave.Wave_write.writeframes` methods now accept any :term:`bytes-like
1456+
object`. (Contributed by Serhiy Storchaka in :issue:`8311`.)
1457+
14461458

14471459
weakref
14481460
-------

0 commit comments

Comments
 (0)