Message276952
When the second argument of complex() is not a number/string, the type error reports the error but prints the type of the first argument:
> complex({1:2},1j)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: complex() argument must be a string or a number, not 'dict'
>complex(1j,{1:2})
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: complex() argument must be a string or a number, not 'complex'
>>> complex(1, {1:2})
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: complex() argument must be a string or a number, not 'int' |
|
Date |
User |
Action |
Args |
2016-09-19 07:41:46 | manishearth | set | recipients:
+ manishearth |
2016-09-19 07:41:45 | manishearth | set | messageid: <1474270906.0.0.604707439727.issue28203@psf.upfronthosting.co.za> |
2016-09-19 07:41:45 | manishearth | link | issue28203 messages |
2016-09-19 07:41:45 | manishearth | create | |
|