Issue #23688: Added support of arbitrary bytes-like objects and avoided

unnecessary copying of memoryview in gzip.GzipFile.write().
Original patch by Wolfgang Maier.
This commit is contained in:
Serhiy Storchaka 2015-03-23 14:59:48 +02:00
parent 77d899726f
commit bca63b362d
4 changed files with 56 additions and 8 deletions

View file

@ -137,6 +137,10 @@ The module defines the following items:
.. versionchanged:: 3.4
Added support for the ``'x'`` and ``'xb'`` modes.
.. versionchanged:: 3.5
Added support for writing arbitrary
:term:`bytes-like objects <bytes-like object>`.
.. function:: compress(data, compresslevel=9)