Skip to content
Open
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
fa9c087
Initial version
skirpichev Dec 5, 2023
fea0b1d
Reserve number 812
skirpichev Oct 29, 2025
5665f85
+ format refs
skirpichev Oct 31, 2025
983e5da
+ set Sponsor & .github/CODEOWNERS
skirpichev Oct 31, 2025
d7d6f0e
cleanup: use extlinks
skirpichev Nov 1, 2025
ad7d448
+ imaginary literals and marshal
skirpichev Nov 1, 2025
369a213
+ NO latex
skirpichev Nov 1, 2025
f4c9c9c
link to Kahan paper
skirpichev Nov 1, 2025
a5bb13a
ad7d448f +1
skirpichev Nov 1, 2025
bc825bf
+ mention mpmath issue 473
skirpichev Nov 1, 2025
63140c2
Merge branch 'master' into imaginary
skirpichev Nov 2, 2025
f69e6c5
Merge branch 'master' into imaginary
skirpichev Nov 4, 2025
27a429f
Merge branch 'master' into imaginary
skirpichev Nov 5, 2025
29fef03
Apply suggestions from code review
skirpichev Nov 5, 2025
0df61c9
Merge branch 'imaginary' of github.com:skirpichev/peps into imaginary
skirpichev Nov 5, 2025
612f2af
address review: apply rest of suggestions
skirpichev Nov 5, 2025
a31d7c1
+ add another algorithm for multiplication
skirpichev Nov 6, 2025
e961ef7
fix formatting
skirpichev Nov 6, 2025
5f35d52
Update peps/pep-0812.rst
skirpichev Nov 7, 2025
b573c82
Merge branch 'main' into imaginary
skirpichev Nov 16, 2025
bf0d67f
address review: move inline footnotes 5-7
skirpichev Nov 16, 2025
27b45b9
+ expose imaginary builtin
skirpichev Nov 20, 2025
8fe6c41
+ ast
skirpichev Nov 20, 2025
e8c8803
separate section for arithmetic
skirpichev Nov 21, 2025
7353470
+ specify more properties for * and /
skirpichev Nov 21, 2025
8e12d53
footnote on complex infinity
skirpichev Nov 21, 2025
036d49c
Merge branch 'main' into imaginary
skirpichev Dec 12, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
address review: apply rest of suggestions
  • Loading branch information
skirpichev committed Nov 5, 2025
commit 612f2af897cf56fd715be655b099579d417a904b
12 changes: 6 additions & 6 deletions peps/pep-0812.rst
Original file line number Diff line number Diff line change
Expand Up @@ -202,10 +202,10 @@ Simplicity is a goal, but most importantly for the end user, not implementers
of the complex arithmetic.


Upcoming C2y standard abandons [8]_ the imaginary type
------------------------------------------------------
Upcoming C2y standard abandons the imaginary type
-------------------------------------------------

That might be viewed as a failure of the new approach: no compiler from major
That [8]_ might be viewed as a failure of the new approach: no compiler from major
players had a correct implementation of the C99 Annex G.

On the other hand, this might be also viewed as an indication of poor adoption of
Expand Down Expand Up @@ -404,7 +404,7 @@ from Python objects and do arithmetic with some external library (like the GNU
GSL), then import back.


It's Not Magic
It's not Magic
==============

New arithmetic rules correct some more examples, where using known analytic
Expand Down Expand Up @@ -547,9 +547,9 @@ explain then a dedicated concept of imaginary numbers as a subtype of complex.
Open Issues
===========

The PEP doesn't expose new subtype as a builtin, say ``imaginary``, but maybe
The PEP doesn't expose a new subtype as a builtin, say ``imaginary``, but maybe
we should? This looks redundant, as all imaginary values could be obtained by
scaling imaginary unit, i.e. ``imaginary(x) == float(x)*1j``.
scaling the imaginary unit, i.e. ``imaginary(x) == float(x)*1j``.


Acknowledgements
Expand Down