This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mark.dickinson
Recipients jdwhitley, mark.dickinson
Date 2010-08-12.07:52:23
SpamBayes Score 1.6249502e-11
Marked as misclassified No
Message-id <1281599546.58.0.705724736353.issue9574@psf.upfronthosting.co.za>
In-reply-to
Content
The problem here is the spaces in the input string:

newton:~ dickinsm$ python2.7
Python 2.7 (r27:82500, Jul 13 2010, 14:10:05) 
[GCC 4.2.1 (Apple Inc. build 5659)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> complex("1.1+2.1j")
(1.1+2.1j)

The current behaviour is by design, so I'm changing to feature request.  It may make sense to consider allowing whitespace around the central '+' or '-', though this would mildly complicate the parsing.

I'd be +0 on this change.
History
Date User Action Args
2010-08-12 07:52:27mark.dickinsonsetrecipients: + mark.dickinson, jdwhitley
2010-08-12 07:52:26mark.dickinsonsetmessageid: <1281599546.58.0.705724736353.issue9574@psf.upfronthosting.co.za>
2010-08-12 07:52:24mark.dickinsonlinkissue9574 messages
2010-08-12 07:52:23mark.dickinsoncreate