Issue 4825: TypeError with complex.real() and complex.imag() (original) (raw)

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 (N+Mj).real() TypeError: 'float' object is not callable >>> (N+Mj).imag() Traceback (most recent call last): File "<pyshell#1>", line 1, in (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 (N+Mj).real() TypeError: 'float' object is not callable >>> (N+Mj).imag() Traceback (most recent call last): File "<pyshell#1>", line 1, in (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:43 admin set github: 49075
2009-01-04 08:26:46 georg.brandl set status: open -> closedresolution: not a bug
2009-01-04 00:39:25 MagnetoHydroDynamics set messages: +
2009-01-04 00:29:16 delroth set nosy: + delrothmessages: +
2009-01-04 00:13:51 MagnetoHydroDynamics set messages: +
2009-01-04 00:12:34 MagnetoHydroDynamics create