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 georg.brandl
Recipients Retro, belopolsky, georg.brandl, mark.dickinson, michael.foord, pitrou, rhettinger
Date 2010-12-02.20:30:35
SpamBayes Score 9.738015e-07
Marked as misclassified No
Message-id <1291321837.32.0.240080740702.issue10562@psf.upfronthosting.co.za>
In-reply-to
Content
We also should consider a good roadmap to account for the eventual support of quaternions in the language syntax.

Since the conventional mathematical symbols for the additional imaginary units of quaternions are j and k, confusion is bound to happen.

My preferred solution is to limit PYTHONIMAGINARYSYMBOL values to "i", "j" or "k" in Python 3.4.  The two additional imaginary unit symbols would then be a cyclic permutation of i,j,k, viz. for PYTHONIMAGINARYSYMBOL=j, the units are k and i.

This deterministic approach has the advantage that migration of code from one imaginary symbol to another is as easy as:

sed -e 's/k/l/' -e 's/j/k/' -e 's/i/j/' -e 's/l/i/'

provided that you restrict yourself not to use the characters i, j, k or l in identifiers, keywords or strings in the source code.
History
Date User Action Args
2010-12-02 20:30:37georg.brandlsetrecipients: + georg.brandl, rhettinger, mark.dickinson, belopolsky, pitrou, Retro, michael.foord
2010-12-02 20:30:37georg.brandlsetmessageid: <1291321837.32.0.240080740702.issue10562@psf.upfronthosting.co.za>
2010-12-02 20:30:35georg.brandllinkissue10562 messages
2010-12-02 20:30:35georg.brandlcreate