-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
PEP 812: Imaginary type and IEC 60559-compatible complex arithmetic #4681
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Based on feedback from the latest discussion thread, I hope @serhiy-storchaka might sponsor this.
CC @serhiy-storchaka
CC @mdickinson
(Alternative formatting with mathjax)
N.B. I did local builds with the default sphinx config and it seems, that "math" directives are rendered odd with the "maths_to_html". In particular, equation numbering is lost (though, references to equations are kept). Any way to fixing this without replacing "math" with something else? CC @AA-Turner
Locally I've something like this:
Screenshot from 2025年10月31日 09-18-03
hugovk
commented
Oct 31, 2025
Please review PEP 1.
The general order of things:
- Open a discussion to see if there is consensus for this idea. This is also to save you time in case the idea is rejected.
- During the discussion, find a sponsor.
- Work with your sponsor, and when they think the PEP is ready for submission, then open the PR.
- A PEP number is assigned by a PEP editor after the sponsor has confirmed their sponsorship.
Therefore please don't write and submit a PEP with just a hope someone will sponsor. This should be arranged beforehand.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
hugovk
commented
Nov 1, 2025
@hugovk, may I reserve some number and set CODEOWNERS?
Yes, you may use 812. Thanks!
@hugovk
hugovk
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly grammar nits.
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
7dde8ec to
a31d7c1
Compare
@serhiy-storchaka, I hope now this ready for your review.
(削除) Perhaps, the major remaining question is: should we try to introduce the imaginary builtin from beginning? Current version don't do so (it's in Open Issues), but maybe this should be reverted? If we introduce a new builtin - this PEP can discuss parsing of strings, which it will accept. (削除ここまで)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Uh oh!
There was an error while loading. Please reload this page.
Basic requirements (all PEP Types)
pep-NNNN.rst), PR title (PEP 123: <Title of PEP>) andPEPheaderAuthororSponsor, and formally confirmed their approvalAuthor,Status(Draft),TypeandCreatedheaders filled out correctly(削除)PEP-Delegate,Topic,RequiresandReplacesheaders completed if appropriate (削除ここまで).github/CODEOWNERSfor the PEPStandards Track requirements
(削除) Security Implications (削除ここまで)Python-Versionset to valid (pre-beta) future Python version, if relevant(削除) Any project stated in the PEP as supporting/endorsing/benefiting from the PEP formally confirmed such (削除ここまで)Discussions-ToandPost-History📚 Documentation preview 📚: https://pep-previews--4681.org.readthedocs.build/
https://pep-previews--4681.org.readthedocs.build/pep-0812/