[issue4825] TypeError with complex.real() and complex.imag()

MagnetoHydroDynamics report at bugs.python.org
Sun Jan 4 01:13:51 CET 2009


MagnetoHydroDynamics <karl at asmussen.ws> added the comment:

In both version 2.6.1 and 3.0 this issue exists:
N and M can be two numbers of any type.
>>> (N+Mj).real()
Traceback (most recent call last):
  File "<pyshell#1>", line 1, in <module>
    (N+Mj).real()
TypeError: 'float' object is not callable
>>> (N+Mj).imag()
Traceback (most recent call last):
  File "<pyshell#1>", line 1, in <module>
    (N+Mj).imag()
TypeError: 'float' object is not callable

It would be nice to have this fixed, preferably soon.

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


More information about the Python-bugs-list mailing list