Skip to content

Change OSErrortype aliases to also be type aliases in Rust#5803

Merged
davidhewitt merged 1 commit intoPyO3:mainfrom
davidhewitt:native-exceptions
Feb 12, 2026
Merged

Change OSErrortype aliases to also be type aliases in Rust#5803
davidhewitt merged 1 commit intoPyO3:mainfrom
davidhewitt:native-exceptions

Conversation

@davidhewitt
Copy link
Member

Just noticed a few places where the docs were out of date following #5733

At the same time, I saw WindowsError was using a windows-specific macro which had no difference to the other macro except that it was (accidentally?) missing subclass support. And even better, that, EnvironmentError, and IOError are all just aliases of OSError since Python 3.3, so I propose we match that in PyO3.

@davidhewitt davidhewitt added this pull request to the merge queue Feb 12, 2026
Merged via the queue into PyO3:main with commit d7f2a22 Feb 12, 2026
44 checks passed
@davidhewitt davidhewitt deleted the native-exceptions branch February 12, 2026 20:45
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