Skip to content

[3.15] gh-155526: Don't check errno in abs(complex) (GH-155527) - #157341

Open
skirpichev wants to merge 1 commit into
python:3.15from
skirpichev:backport-e5d4fa2-3.15
Open

[3.15] gh-155526: Don't check errno in abs(complex) (GH-155527)#157341
skirpichev wants to merge 1 commit into
python:3.15from
skirpichev:backport-e5d4fa2-3.15

Conversation

@skirpichev

@skirpichev skirpichev commented Sep 11, 2026

Copy link
Copy Markdown
Member

abs(complex) no longer raises OverflowError if errno was set to ERANGE by some library call but abs() doesn't overflow.

(cherry picked from commit e5d4fa2)

…55527)

abs(complex) no longer raises OverflowError if errno was set to ERANGE
by some library call but abs() doesn't overflow.

(cherry picked from commit e5d4fa2)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: hpkfft.com <paul@hpkfft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant