Complex evaluation bug martin.witte at
Thu May 18 19:09:47 CEST 2006

py> c = complex(1, 3)
py> print c
py> d = complex('1+3j')
py> print d
py> str(1+3j)

complex takes two numbers, or a string representing a complex number.
the string you supply isn't a representation of valid complex number.

More information about the Python-list mailing list