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

codecs.strict_errors

Prev: codecs.StreamWriter | Up: codecs | Next: codecs.xmlcharrefreplace_errors
Rel: codecs.backslashreplace_errors, codecs.Codec, codecs.CodecInfo, codecs.decode
Ref: docs.python.org — codecs.strict_errors
Tags: #public #python3 #stdlib #codecs


Import

import codecs
from codecs import strict_errors

Signature & Overview

codecs.strict_errors(self, object, /)

Implements the 'strict' error handling, which raises a UnicodeError on coding errors.

Usage

import codecs

assert codecs.lookup_error("strict") is codecs.strict_errors

Gotchas

REPL Inspect

from codecs import strict_errors
help(strict_errors)

Linked from

Related notes