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

zlib.adler32

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


Import

import zlib
from zlib import adler32

Signature & Overview

zlib.adler32(data, value=1, /)

Compute an Adler-32 checksum of data.

Usage

import zlib

c = zlib.adler32(b'hello')
c = zlib.adler32(b' world', c)
assert c == zlib.adler32(b'hello world')

Gotchas

REPL Inspect

from zlib import adler32
help(adler32)

Linked from

Related notes