[issue10562] Change 'j' for imaginary unit into an 'i'

Alexander Belopolsky report at bugs.python.org
Fri Dec 3 19:03:06 CET 2010


Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:

> Alexander, is it possible to make an output like (1+2j)
> be printed as (1 + 2j).

Sure, and 'j' can be highlighted in red, but this is a job for a front-end or a custom display hook, not core python.  You may want to take a look at ipython.

> Also, why is the result put in parens?

There was a historical reason for that, but I don't remember it now.  You may find the answer in the tracker, svn log, or python-dev archives.

It may not have been obvious, but most of the comments here including mine were not serious even when they did not include smileys.  Nothing will happen here.  Time to move on.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10562>
_______________________________________


More information about the Python-bugs-list mailing list