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

base64.decodebytes

Prev: base64.decode | Up: base64 | Next: base64.encode
Rel: base64.a85decode, base64.a85encode, base64.b16decode, base64.b16encode
Ref: docs.python.org — base64.decodebytes
Tags: #public #python3 #stdlib #base64


Import

import base64
from base64 import decodebytes

Signature & Overview

base64.decodebytes(s)

Decode a bytestring of base-64 data into a bytes object.

Usage

import base64

assert base64.decodebytes(b"aGVsbG8=\n") == b"hello"

Gotchas

REPL Inspect

from base64 import decodebytes
help(decodebytes)

Linked from

Related notes