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.

classification
Title: Error in representation of complex numbers
Type: Stage:
Components: Interpreter Core Versions: Python 2.4
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: loewis Nosy List: loewis, rhettinger
Priority: high Keywords:

Created on 2004-08-22 18:57 by rhettinger, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg22172 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2004-08-22 18:57
>>> 1-2j
(1+-2j)

This was introduced in Objects/complexobject.c 2.71
checked in by MvL on June 8, 2004.  It is causing the
doctests to fail on some of my apps.

Recommend introducing an alternate path when the
imaginary component is negative.
msg22173 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2004-08-22 21:10
Logged In: YES 
user_id=21627

Fixed in

test_complex.py 1.15
complexobject.c 2.72
History
Date User Action Args
2022-04-11 14:56:06adminsetgithub: 40804
2004-08-22 18:57:32rhettingercreate