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

ctypes.c_byte

Prev: ctypes.c_buffer | Up: ctypes | Next: ctypes.c_char
Rel: ctypes.addressof, ctypes.alignment, ctypes.ArgumentError, ctypes.Array
Ref: docs.python.org — ctypes.c_byte
Tags: #public #python3 #stdlib #ctypes


Import

import ctypes
from ctypes import c_byte

Signature & Overview

ctypes.c_byte(...)

ctypes.c_byte class.

Usage

import ctypes

b = ctypes.c_byte(-5)
assert b.value == -5 and ctypes.sizeof(b) == 1

Gotchas

REPL Inspect

from ctypes import c_byte
help(c_byte)

Linked from

Related notes