Skip to content

gh-156886: Fix spurious ZeroDivisionError for complex powers - #156887

Open
serhiy-storchaka wants to merge 1 commit into
python:mainfrom
serhiy-storchaka:complex-pow-edom
Open

gh-156886: Fix spurious ZeroDivisionError for complex powers#156887
serhiy-storchaka wants to merge 1 commit into
python:mainfrom
serhiy-storchaka:complex-pow-edom

Conversation

@serhiy-storchaka

@serhiy-storchaka serhiy-storchaka commented Sep 3, 2026

Copy link
Copy Markdown
Member

cos() and sin() of an infinite phase set errno to EDOM, which complex_pow() reported as a zero base.

🤖 Generated with Claude Code

cos() and sin() of an infinite phase set errno to EDOM, which
complex_pow() reported as a zero base.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@serhiy-storchaka

Copy link
Copy Markdown
Member Author

Not sure that this is the best solution, but it is the simplest.

@skirpichev skirpichev added the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Sep 3, 2026
@bedevere-bot

Copy link
Copy Markdown

🤖 New build scheduled with the buildbot fleet by @skirpichev for commit 08cc039 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F156887%2Fmerge

If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again.

@bedevere-bot bedevere-bot removed the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Sep 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants