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

ctypes.set_errno

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


Import

import ctypes
from ctypes import set_errno

Signature & Overview

ctypes.set_errno(...)

ctypes.set_errno() function.

Usage

import ctypes

old = ctypes.set_errno(0)
assert isinstance(old, int)

Gotchas

REPL Inspect

from ctypes import set_errno
help(set_errno)

Linked from

Related notes