[Python-Dev] complex I/O problem

Neal Becker ndbecker2 at verizon.net
Tue Feb 1 17:11:37 CET 2005


If I call "print" on a complex value, I may get this:
'(2+2j)'

But this is not acceptable as input:
complex ('(2+2j)')
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
ValueError: complex() arg is a malformed string

Whatever format is used for output should be accepted as input!



More information about the Python-Dev mailing list