This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mark.dickinson
Recipients docs@python, josh.r, mark.dickinson, rhettinger, rushilu, serhiy.storchaka, steven.daprano, tim.peters
Date 2020-04-13.10:04:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1586772298.49.0.278267356001.issue40269@roundup.psfhosted.org>
In-reply-to
Content
> The Imaginary type could help to solve other "gotchas".

Yes, it's an attractive proposition from many angles: e.g., multiplying by 1j could do the correct quarter-turn rotation in the complex plane, keeping all signs correct, so that multiplying a complex number z by 1j 4 times exactly recovers z, regardless of nans, infinities and signed zeros.

C99's specification of (optional) imaginary types was supposed to solve exactly this problem, but it doesn't look as though it received widespread adoption, and I suspect it would have difficult getting traction in Python world, too.

I'll have a PR with a documentation update shortly.
History
Date User Action Args
2020-04-13 10:04:58mark.dickinsonsetrecipients: + mark.dickinson, tim.peters, rhettinger, steven.daprano, docs@python, serhiy.storchaka, josh.r, rushilu
2020-04-13 10:04:58mark.dickinsonsetmessageid: <1586772298.49.0.278267356001.issue40269@roundup.psfhosted.org>
2020-04-13 10:04:58mark.dickinsonlinkissue40269 messages
2020-04-13 10:04:58mark.dickinsoncreate