On this page
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
- Deprecated: Forward-declare a
Structuresubclass first, then assignNode._fields_ = [("next", ctypes.POINTER(Node))].
REPL Inspect
from ctypes import SetPointerType
help(SetPointerType)
Linked from
Related notes
- tuts/python3/stdlib_module/ctypes/set_errno Linked here; links to this page; shared tags: #ctypes, #stdlib
- tuts/python3/stdlib_module/ctypes/sizeof Linked here; links to this page; shared tags: #ctypes, #stdlib
- tuts/python3/stdlib_module/ctypes Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/ctypes/addressof Linked here; shared tags: #ctypes, #stdlib
- tuts/python3/stdlib_module/ctypes/alignment Linked here; shared tags: #ctypes, #stdlib
- tuts/python3/stdlib_module/ctypes/ArgumentError Linked here; shared tags: #ctypes, #stdlib
- tuts/python3/stdlib_module/ctypes/Array Linked here; shared tags: #ctypes, #stdlib
- tuts/python3/stdlib_module/ctypes/BigEndianStructure shared tags: #ctypes, #stdlib
- tuts/python3/stdlib_module/ctypes/BigEndianUnion shared tags: #ctypes, #stdlib
- tuts/python3/stdlib_module/ctypes/byref shared tags: #ctypes, #stdlib