Skip to content

errno

Error numbers and available names always follow Linux’s asm-generic errno definitions, regardless of the host OS. CPython instead uses its host platform’s constants: EAGAIN differs on macOS, and EWOULDBLOCK differs on Windows. Names specific to other platforms, including Windows WSA* names and macOS EFTYPE, are absent.

Aliases in errorcode use CPython on Linux’s preferred names: EAGAIN for 11, EDEADLOCK for 35, and ENOTSUP for 95. These can differ from CPython’s reverse mappings on other platforms.

The general built-in module limitations also apply. Missing errorcode keys follow the existing KeyError argument limitation.