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

ctypes.c_long

Prev: ctypes.c_int8 | Up: ctypes | Next: ctypes.c_longdouble
Rel: ctypes.addressof, ctypes.alignment, ctypes.ArgumentError, ctypes.Array
Ref: docs.python.org — ctypes.c_long
Tags: #public #python3 #stdlib #ctypes


Import

import ctypes
from ctypes import c_long

Signature & Overview

ctypes.c_long(...)

ctypes.c_long class.

Usage

import ctypes

n = ctypes.c_long(123)
assert n.value == 123

Gotchas

REPL Inspect

from ctypes import c_long
help(c_long)

Linked from

Related notes