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

ctypes.get_errno

Prev: ctypes.create_unicode_buffer | Up: ctypes | Next: ctypes.memmove
Rel: ctypes.addressof, ctypes.alignment, ctypes.ArgumentError, ctypes.Array
Ref: docs.python.org — ctypes.get_errno
Tags: #public #python3 #stdlib #ctypes


Import

import ctypes
from ctypes import get_errno

Signature & Overview

ctypes.get_errno()

ctypes.get_errno() function.

Usage

import ctypes

# Reads the thread-local ctypes errno copy (requires CDLL(..., use_errno=True))
assert isinstance(ctypes.get_errno(), int)

Gotchas

REPL Inspect

from ctypes import get_errno
help(get_errno)

Linked from

Related notes