Skip to content

gh-76763: Make chr() always raising ValueError for out-of-range values - #114882

Merged
serhiy-storchaka merged 2 commits into
python:mainfrom
serhiy-storchaka:chr-overflow
Feb 10, 2024
Merged

gh-76763: Make chr() always raising ValueError for out-of-range values#114882
serhiy-storchaka merged 2 commits into
python:mainfrom
serhiy-storchaka:chr-overflow

Conversation

@serhiy-storchaka

@serhiy-storchakaserhiy-storchaka commented Feb 1, 2024

Copy link
Copy Markdown
Member

Previously it raised OverflowError for very large or very small values.

… values
Previously it raised OverflowError for very large or very small values.
@ericsnowcurrently
ericsnowcurrently removed their request for review February 2, 2024 00:26
…e-76763.o_2J6i.rst
Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com>
@serhiy-storchaka

Copy link
Copy Markdown
MemberAuthor

@vstinner, it has the same effect to your #5218, but without raising and catching an OverflowError.

@mdickinsonmdickinson left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@serhiy-storchaka
serhiy-storchaka merged commit e2c4038 into python:mainFeb 10, 2024
@serhiy-storchaka
serhiy-storchaka deleted the chr-overflow branch February 10, 2024 10:21
fsc-eriker pushed a commit to fsc-eriker/cpython that referenced this pull request Feb 14, 2024
… values (pythonGH-114882)
Previously it raised OverflowError for very large or very small values.
Sign up for freeto 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

@serhiy-storchaka@mdickinson@eendebakpt