IronLanguages / main

Work for this repo has moved to https://github.com/IronLanguages/ironpython2
1.16k stars 347 forks source link

"complex('5j+5')" no longer possible under CPython 2.7 #879

Open ironpythonbot opened 9 years ago

ironpythonbot commented 9 years ago

D:\rft\vsl\dlr\Languages\IronPython\Tests>26 -c "complex('5j+5')"

D:\rft\vsl\dlr\Languages\IronPython\Tests>27 -c "complex('5j+5')"
Traceback (most recent call last):
File "", line 1, in
ValueError: complex() arg is a malformed string

D:\rft\vsl\dlr\Languages\IronPython\Tests>ipyd -c "complex('5j+5')"

D:\rft\vsl\dlr\Languages\IronPython\Tests>

Work Item Details

Original CodePlex Issue: Issue 28384 Status: Proposed Reason Closed: Unassigned Assigned to: Unassigned Reported on: Aug 2, 2010 at 9:57 PM Reported by: dfugate Updated on: Feb 22, 2013 at 2:10 AM Updated by: jdhardy Test: python26.py (test_complex)

slide commented 8 years ago

The code IronPython does a simple split on the 'j' character and doesn't really do a lot of format checking.