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

ctypes.SetPointerType

Prev: ctypes.set_errno | Up: ctypes | Next: ctypes.sizeof
Rel: ctypes.addressof, ctypes.alignment, ctypes.ArgumentError, ctypes.Array
Ref: docs.python.org — ctypes.SetPointerType
Tags: #public #python3 #stdlib #ctypes


Import

import ctypes
from ctypes import SetPointerType

Signature & Overview

ctypes.SetPointerType(pointer, cls)

ctypes.SetPointerType() function.

Usage

import ctypes

# Legacy helper for self-referential pointer types; prefer incomplete POINTER("Node")
assert callable(ctypes.SetPointerType)

Gotchas

REPL Inspect

from ctypes import SetPointerType
help(SetPointerType)

Linked from

Related notes