Skip to content

Conversation

@JukkaL
Copy link
Collaborator

@JukkaL JukkaL commented Dec 9, 2025

Previously we used OverflowError, which seems inconsistent with
CPython, since a conversion/range check is arguably not an arithmetic
operation, and OverflowError is a subclass of ArithmeticError.

This is an extract for the docs for OverflowError: "Raised when the result
of an arithmetic operation is too large to be represented."

Previously we used OverflowError, which seems inconsistent with
CPython, since a conversion/range check is arguably not an arithmetic
operation, and OverflowError is a subclass of ArithmeticError.

This is an extract for the docs for OverflowError: "Raised when the result
of an arithmetic operation is too large to be represented."
@JukkaL JukkaL merged commit fefc070 into master Dec 9, 2025
16 checks passed
@JukkaL JukkaL deleted the mypyc-int-overflow branch December 9, 2025 17:43
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.

3 participants