On this page
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
- Default error handler: Re-raises
UnicodeEncodeError/UnicodeDecodeError.
REPL Inspect
from codecs import strict_errors
help(strict_errors)
Linked from
Related notes
- tuts/python3/stdlib_module/codecs/StreamWriter Linked here; links to this page; shared tags: #codecs, #stdlib
- tuts/python3/stdlib_module/codecs/xmlcharrefreplace_errors Linked here; links to this page; shared tags: #codecs, #stdlib
- tuts/python3/stdlib_module/codecs Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/codecs/backslashreplace_errors Linked here; shared tags: #codecs, #stdlib
- tuts/python3/stdlib_module/codecs/Codec Linked here; shared tags: #codecs, #stdlib
- tuts/python3/stdlib_module/codecs/CodecInfo Linked here; shared tags: #codecs, #stdlib
- tuts/python3/stdlib_module/codecs/decode Linked here; shared tags: #codecs, #stdlib
- tuts/python3/stdlib_module/codecs/encode shared tags: #codecs, #stdlib
- tuts/python3/stdlib_module/codecs/EncodedFile shared tags: #codecs, #stdlib
- tuts/python3/stdlib_module/codecs/getdecoder shared tags: #codecs, #stdlib