This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Some errnos for BSD/OSX are missing from errno module
Type: enhancement Stage: resolved
Components: Extension Modules Versions: Python 3.11
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: lukasz.langa, ned.deily, ngie, ronaldoussoren
Priority: normal Keywords: patch

Created on 2021-01-19 20:56 by ngie, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 24419 merged ronaldoussoren, 2021-02-02 19:14
Messages (6)
msg385293 - (view) Author: Enji Cooper (ngie) * Date: 2021-01-19 20:56
Some errnos for BSD/OSX are currently not supported by the errno module. It would be helpful for these to be exposed to the end-user so they could programmatically use them instead of reinventing the wheel in a separate module/C extension, or hardcoding the information in consuming pieces of code.
msg385295 - (view) Author: Enji Cooper (ngie) * Date: 2021-01-19 21:07
Some items that I've noted so far that are missing:

- ENOATTR (BSD/OSX)
- ENOLINK (BSD; is reserved on OSX)
- ENOTSUP (NetBSD, OpenBSD, OSX)
msg386157 - (view) Author: Ronald Oussoren (ronaldoussoren) * (Python committer) Date: 2021-02-02 18:50
I've checked all three and all of them are present in errnomodule.c, and all of them are defined in the errno module (macOS 11, Python 3.9.1 "universal2" build).

On first glance all errno values in the macOS 11 SDK are present in errnomodule.c.
msg386158 - (view) Author: Ronald Oussoren (ronaldoussoren) * (Python committer) Date: 2021-02-02 19:02
I was too quick, EQFULL appears to be missing:

#define EQFULL          106             /* Interface output queue is full */


If the script I'm using to check for this is correct this is the only missing errno with the macOS 11 SDK.
msg399154 - (view) Author: Łukasz Langa (lukasz.langa) * (Python committer) Date: 2021-08-06 21:35
New changeset 17c23167942498296f0bdfffe52e72d53d66d693 by Ronald Oussoren in branch 'main':
bpo-42971: Add errno.EQFULL (macOS) (GH-24419)
https://github.com/python/cpython/commit/17c23167942498296f0bdfffe52e72d53d66d693
msg399155 - (view) Author: Łukasz Langa (lukasz.langa) * (Python committer) Date: 2021-08-06 21:36
Thanks for the patch, Ronald, and for the report, Enji! ✨ 🍰 ✨
History
Date User Action Args
2022-04-11 14:59:40adminsetgithub: 87137
2021-08-06 21:36:13lukasz.langasetstatus: open -> closed
resolution: fixed
messages: + msg399155

stage: patch review -> resolved
2021-08-06 21:35:22lukasz.langasetnosy: + lukasz.langa
messages: + msg399154
2021-08-06 21:25:15lukasz.langasetversions: + Python 3.11, - Python 3.10
2021-02-02 19:14:51ronaldoussorensetkeywords: + patch
stage: needs patch -> patch review
pull_requests: + pull_request23234
2021-02-02 19:02:26ronaldoussorensetstatus: pending -> open
resolution: not a bug -> (no value)
messages: + msg386158

stage: resolved -> needs patch
2021-02-02 18:50:36ronaldoussorensetstatus: open -> pending
resolution: not a bug
stage: resolved
2021-02-02 18:50:21ronaldoussorensetmessages: + msg386157
2021-01-23 17:34:34terry.reedysettype: enhancement
versions: + Python 3.10, - Python 3.8
2021-01-19 22:20:40gvanrossumsetnosy: + ronaldoussoren, ned.deily
2021-01-19 21:07:19ngiesetmessages: + msg385295
2021-01-19 20:56:36ngiecreate