On this page
  1. zlib.crc32
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

zlib.crc32

Prev: zlib.compressobj | Up: zlib | Next: zlib.decompress
Rel: zlib.adler32, zlib.compress, zlib.compressobj, zlib.decompress
Ref: docs.python.org — zlib.crc32
Tags: #public #python3 #stdlib #zlib


Import

import zlib
from zlib import crc32

Signature & Overview

zlib.crc32(data, value=0, /)

Compute a CRC-32 checksum of data.

Usage

import zlib

assert zlib.crc32(b'hello') == 0x3610A686

Gotchas

REPL Inspect

from zlib import crc32
help(crc32)

Linked from

Related notes