On this page
  1. zlib.error
  2. Import
  3. Signature & Overview
  4. Methods & Attributes
  5. Usage
  6. Gotchas
  7. REPL Inspect

zlib.error

Prev: zlib.decompressobj | Up: zlib
Rel: zlib.adler32, zlib.compress, zlib.compressobj, zlib.crc32
Ref: docs.python.org โ€” zlib.error
Tags: #public #python3 #stdlib #zlib


Import

import zlib
from zlib import error

Signature & Overview

zlib.error(...)

zlib.error class.

Methods & Attributes

Usage

import zlib

try:
    zlib.decompress(b'invalid')
except zlib.error:
    assert True

Gotchas

REPL Inspect

from zlib import error
help(error)

Linked from

Related notes