Skip to content

Commit 03c54a9

Browse files
authored
Merge pull request #6131 from Neradoc/binascii-crc32-docs
Add binascii crc32 to documentation
2 parents 4420265 + cbcfb8a commit 03c54a9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/library/binascii.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,9 @@ Functions
3636
Encode binary data in base64 format, as in `RFC 3548
3737
<https://tools.ietf.org/html/rfc3548.html>`_. Returns the encoded data
3838
followed by a newline character, as a bytes object.
39+
40+
.. function:: crc32(data, value=0, /)
41+
42+
Compute CRC-32, the 32-bit checksum of the bytes in *data* starting with an
43+
initial CRC of *value*. The default initial CRC is 0. The algorithm is
44+
consistent with the ZIP file checksum.

0 commit comments

Comments
 (0)