Visitar URL original
bpo-38687: Expose zlib 'adler32_combine' function to Python zlib module by CallumAttryde · Pull Request #17048 · python/cpython · GitHub
Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
patchcheck fixes
  • Loading branch information
CallumAttryde committed Nov 4, 2019
commit 282bf2d87746634f5b9b6ca64ed42fbcb407f060
5 changes: 5 additions & 0 deletions Doc/library/zlib.rst
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ The available exception and functions in this module are:
platforms, use ``adler32(data) & 0xffffffff``.


.. function:: adler32_combine(adler_1, adler_2, len_2)

Combines two Adler-32 checksums *adler_1* and *adler_2* into one. *len_2* is the length of the string used to generate *adler_2*.


.. function:: compress(data, /, level=-1)

Compresses the bytes in *data*, returning a bytes object containing compressed data.
Expand Down
1 change: 1 addition & 0 deletions Misc/ACKS
Original file line number Diff line number Diff line change
Expand Up @@ -1896,3 +1896,4 @@ Robert Leenders
Tim Hopper
Dan Lidral-Porter
Ngalim Siregar
Callum Attryde