Message113664
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. |
|
Date |
User |
Action |
Args |
2010-08-12 07:52:27 | mark.dickinson | set | recipients:
+ mark.dickinson, jdwhitley |
2010-08-12 07:52:26 | mark.dickinson | set | messageid: <1281599546.58.0.705724736353.issue9574@psf.upfronthosting.co.za> |
2010-08-12 07:52:24 | mark.dickinson | link | issue9574 messages |
2010-08-12 07:52:23 | mark.dickinson | create | |
|