Re: [Python-Dev] complex I/O problem

2005-02-01 Thread Josiah Carlson
"A.M. Kuchling" <[EMAIL PROTECTED]> wrote: > > On Tue, Feb 01, 2005 at 11:11:37AM -0500, Neal Becker wrote: > > complex ('(2+2j)') > > Traceback (most recent call last): > > File "", line 1, in ? > > ValueError: complex() arg is a malformed string > > > > Whatever format is used for output sho

Re: [Python-Dev] complex I/O problem

2005-02-01 Thread Guido van Rossum
On Tue, 1 Feb 2005 12:16:10 -0500, A.M. Kuchling <[EMAIL PROTECTED]> wrote: > On Tue, Feb 01, 2005 at 11:11:37AM -0500, Neal Becker wrote: > > complex ('(2+2j)') > > Traceback (most recent call last): > > File "", line 1, in ? > > ValueError: complex() arg is a malformed string > > > > Whatever f

Re: [Python-Dev] complex I/O problem

2005-02-01 Thread A.M. Kuchling
On Tue, Feb 01, 2005 at 11:11:37AM -0500, Neal Becker wrote: > complex ('(2+2j)') > Traceback (most recent call last): > File "", line 1, in ? > ValueError: complex() arg is a malformed string > > Whatever format is used for output should be accepted as input! This isn't true in general; it's n

[Python-Dev] complex I/O problem

2005-02-01 Thread Neal Becker
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 "", line 1, in ? ValueError: complex() arg is a malformed string Whatever format is used for output should be accepted as input! __