Skip to content

[3.14] Throw informative SystemError rather than plain Exception when ctypes version consistency assertion fails before 3.15 deprecation (GH-146549)#146550

Closed
jonathandung wants to merge 2 commits intopython:3.14from
jonathandung:patch-3
Closed

Conversation

@jonathandung
Copy link
Copy Markdown
Contributor

@jonathandung jonathandung commented Mar 28, 2026

@bedevere-app bedevere-app bot added type-bug An unexpected behavior, bug, or error awaiting review labels Mar 28, 2026
@jonathandung jonathandung changed the title [3.14] Throw informative SystemError rather than plain Exception when ctypes version consistency assertion fails before 3.15 deprecation (GH-146549) [3.14] Throw informative SystemError rather than plain Exception when ctypes version consistency assertion fails before 3.15 deprecation (GH-146550) Mar 28, 2026
@bedevere-app
Copy link
Copy Markdown

bedevere-app bot commented Mar 28, 2026

GH-146550 is a backport of this pull request to the 3.14 branch.

@bedevere-app
Copy link
Copy Markdown

bedevere-app bot commented Mar 28, 2026

GH-146551 is a backport of this pull request to the 3.13 branch.

@jonathandung jonathandung changed the title [3.14] Throw informative SystemError rather than plain Exception when ctypes version consistency assertion fails before 3.15 deprecation (GH-146550) [3.14] Throw informative SystemError rather than plain Exception when ctypes version consistency assertion fails before 3.15 deprecation (GH-146549) Mar 28, 2026
@jonathandung
Copy link
Copy Markdown
Contributor Author

Please add the skip news label.

Co-authored-by: Shrey Naithani <shrey.naithani@shelllite.tech>
@picnixz
Copy link
Copy Markdown
Member

picnixz commented Mar 28, 2026

SystemError are for interpreter's level exceptions. Exception is correct. Changing it is also a breaking change that we cannot and will not make.

@picnixz picnixz closed this Mar 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review type-bug An unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants