Skip to content

Imaginary type and IEC 60559-compatible complex arithmetic#10

Open
skirpichev wants to merge 35 commits into
mainfrom
imaginary
Open

Imaginary type and IEC 60559-compatible complex arithmetic#10
skirpichev wants to merge 35 commits into
mainfrom
imaginary

Conversation

@skirpichev
Copy link
Copy Markdown
Owner

@skirpichev skirpichev commented Oct 19, 2025

This PEP alters the meaning of the imaginary literal in Python. From now it will denote a newly added complex subtype (called therein imaginary or pure-imaginary complex number) with a zero real component. This component of imaginary numbers will be ignored in arithmetic operations when the other operand is either a complex (but not imaginary) or a float.

Implementation: skirpichev/cpython#1

@skirpichev skirpichev changed the title Draft PEP: Imaginary type and IEC 60559-compatible complex arithmetic Imaginary type and IEC 60559-compatible complex arithmetic Oct 19, 2025
@skirpichev skirpichev force-pushed the imaginary branch 2 times, most recently from 88dcc2a to b147c15 Compare October 23, 2025 22:02
@skirpichev skirpichev force-pushed the imaginary branch 3 times, most recently from 54cee7d to 2d00e74 Compare October 29, 2025 05:48
@skirpichev skirpichev changed the title Imaginary type and IEC 60559-compatible complex arithmetic PEP 812: Imaginary type and IEC 60559-compatible complex arithmetic Oct 29, 2025
@skirpichev skirpichev force-pushed the imaginary branch 9 times, most recently from fbcf6a5 to d16985b Compare October 31, 2025 05:54
@skirpichev skirpichev changed the title PEP 812: Imaginary type and IEC 60559-compatible complex arithmetic Imaginary type and IEC 60559-compatible complex arithmetic Oct 31, 2025
@skirpichev skirpichev reopened this Oct 31, 2025
@skirpichev skirpichev closed this Oct 31, 2025
@skirpichev skirpichev reopened this Mar 2, 2026
@skirpichev skirpichev marked this pull request as ready for review March 2, 2026 00:42
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.

1 participant