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

uuid.bytes_

Up: uuid | Next: uuid.Enum
Rel: uuid.Enum, uuid.getnode, uuid.int_, uuid.main
Ref: docs.python.org — uuid.bytes_
Tags: #public #python3 #stdlib #uuid


Import

import uuid
from uuid import bytes_

Signature & Overview

uuid.bytes_(...)

bytes(string, encoding[, errors]) -> bytes bytes(bytes_or_buffer) -> immutable copy of bytes_or_buffer bytes(int) -> bytes object of size given by the parameter initialized with null bytes

Methods & Attributes

Usage

import uuid

# Keyword argument / alias used internally; pass bytes= to uuid.UUID(bytes=raw16)
assert isinstance(uuid.UUID(bytes=b'\x00' * 16), uuid.UUID)

Gotchas

REPL Inspect

from uuid import bytes_
help(bytes_)

Linked from

Related notes