PyDocs

Nav

Python Runtime Services

bytearray.decode

  • bytearray.decode(encoding='utf-8', errors='strict')
Decode the bytearray using the codec registered for encoding.

encoding
  The encoding with which to decode the bytearray.
errors
  The error handling scheme to use for the handling of decoding
  errors.  The default is 'strict' meaning that decoding errors
  raise a UnicodeDecodeError.  Other possible values are 'ignore'
  and 'replace' as well as any other name registered with
  codecs.register_error that can handle UnicodeDecodeErrors.
Changed in 3.1, 3.9
  • 3.1: Added support for keyword arguments.
  • 3.9: The value of the errors argument is now checked in Python Development Mode and in debug mode.
0 Examples
No examples for builtins/bytearray.decode.
See Also
No see-alsos for builtins/bytearray.decode
0 Notes
No notes for bytearray.decode