complex() bug or feature?
Carsten Gaebler
clpy at snakefarm.org
Thu Nov 8 05:53:58 EST 2001
Hi there,
is this the way complex() is supposed to work?
Python 2.2b1 (#2, Oct 22 2001, 10:47:30)
[GCC 2.95.2 20000220 (Debian GNU/Linux)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> complex('1', '1')
(1+0j)
>>>
If complex() allows stings as arguments (like float()), what's
happened to the imaginary part?
Regards
Carsten.
---
'In iteger arithetric divsion is no the oposite of multiplication.'
More information about the Python-list
mailing list