Skip to content

[3.13] gh-100218: correctly set errno when socket.if_{nametoindex,indextoname} raise OSError (GH-140905)#141285

Merged
picnixz merged 1 commit intopython:3.13from
picnixz:backport-3ce2d57-3.13
Nov 9, 2025
Merged

[3.13] gh-100218: correctly set errno when socket.if_{nametoindex,indextoname} raise OSError (GH-140905)#141285
picnixz merged 1 commit intopython:3.13from
picnixz:backport-3ce2d57-3.13

Conversation

@picnixz
Copy link
Copy Markdown
Member

@picnixz picnixz commented Nov 9, 2025

Previously, socket.if_nametoindex() and socket.if_indextoname() could raise an OSError with a None errno. Now, the errno from libc is propagated. (cherry picked from commit 3ce2d57)

…index,indextoname}` raise `OSError` (pythonGH-140905)

Previously, socket.if_nametoindex() and socket.if_indextoname() could raise
an `OSError` with a `None` errno. Now, the errno from libc is propagated.
(cherry picked from commit 3ce2d57)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
@efimov-mikhail
Copy link
Copy Markdown
Member

MacOS FT errors seem to be unrelated. Should we create a new issue for those?

@picnixz
Copy link
Copy Markdown
Member Author

picnixz commented Nov 9, 2025

I think I created or saw an issue somewhere but I know that the IDLE issues always appear on macOS. Could you check this for me please?

@efimov-mikhail
Copy link
Copy Markdown
Member

I've found this issue:
#134770

@picnixz picnixz merged commit 873f0d0 into python:3.13 Nov 9, 2025
74 of 76 checks passed
@picnixz picnixz deleted the backport-3ce2d57-3.13 branch November 9, 2025 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants