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

sqlite3.Binary

Prev: sqlite3.adapt | Up: sqlite3 | Next: sqlite3.Blob
Rel: sqlite3.adapt, sqlite3.Blob, sqlite3.complete_statement, sqlite3.connect
Ref: docs.python.org — sqlite3.Binary
Tags: #public #python3 #stdlib #sqlite3


Import

import sqlite3
from sqlite3 import Binary

Signature & Overview

sqlite3.Binary(object)

Create a new memoryview object which references the given object.

Methods & Attributes

Usage

import sqlite3

val = sqlite3.Binary(b"\x00\x01\x02")
assert bytes(val) == b"\x00\x01\x02"

Gotchas

REPL Inspect

from sqlite3 import Binary
help(Binary)

Linked from

Related notes