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: TypeError with complex.real() and complex.imag()
Type: behavior Stage:
Components: None Versions: Python 3.0
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: MagnetoHydroDynamics, delroth
Priority: normal Keywords:

Created on 2009-01-04 00:12 by MagnetoHydroDynamics, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (4)
msg79024 - (view) Author: (MagnetoHydroDynamics) Date: 2009-01-04 00:12
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
msg79025 - (view) Author: (MagnetoHydroDynamics) Date: 2009-01-04 00:13
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.
msg79028 - (view) Author: Pierre Bourdon (delroth) Date: 2009-01-04 00:29
I don't think this is a valid issue : real and imag are just properties
of complex objects, not methods !
msg79029 - (view) Author: (MagnetoHydroDynamics) Date: 2009-01-04 00:39
Nvm. I thought it was metods.

Requesting deletion.
History
Date User Action Args
2022-04-11 14:56:43adminsetgithub: 49075
2009-01-04 08:26:46georg.brandlsetstatus: open -> closed
resolution: not a bug
2009-01-04 00:39:25MagnetoHydroDynamicssetmessages: + msg79029
2009-01-04 00:29:16delrothsetnosy: + delroth
messages: + msg79028
2009-01-04 00:13:51MagnetoHydroDynamicssetmessages: + msg79025
2009-01-04 00:12:34MagnetoHydroDynamicscreate