errno

package
v0.12.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 15, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package errno is the gopy port of CPython's built-in errno module. It exposes the host platform's POSIX errno integer constants (EPERM, ENOENT, ...) as module attributes plus an `errorcode` dict that maps each integer value back to its uppercase name string.

The CPython source iterates a long #ifdef-guarded list inside errno_exec; gopy mirrors that with per-GOOS files (entries_darwin.go, entries_linux.go, entries_other.go) so cross-compile stays clean. Each file returns the (name, code) pairs that exist on that platform.

CPython: Modules/errnomodule.c:88 errno_exec

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL