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

MagnetoHydroDynamics report at bugs.python.org
Sun Jan 4 01:12:35 CET 2009


New submission from MagnetoHydroDynamics <karl at asmussen.ws>:

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

----------
components: None
messages: 79024
nosy: MagnetoHydroDynamics
severity: normal
status: open
title: TypeError with complex.real() and complex.imag()
type: behavior
versions: Python 3.0

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


More information about the Python-bugs-list mailing list