#4501: preparser does not know about python notation for complex numbers
------------------------------+---------------------------------------------
 Reporter:  jason             |        Owner:  somebody
     Type:  defect            |       Status:  new     
 Priority:  major             |    Milestone:  sage-3.2
Component:  basic arithmetic  |   Resolution:          
 Keywords:                    |  
------------------------------+---------------------------------------------
Comment (by jason):

 {{{
 [10:57] <mhansen> jason-: I don't have time to make a patch now, but the
 following two lines around line 805 in sage/misc/preparser.py are the
 correct fix if we want 1j to return a <type 'complex'>:
 [10:57] <mhansen>                 elif i < len(line) and line[i] == 'j':
 [10:57] <mhansen>                     pass
 [10:57] <jason-> I can make a quick patch
 [10:57] <jason-> It needs to support "J"
 [10:57] <jason-> and also work for floating numbers too
 [10:58] <jason-> and then there's the issue of if we want to construct
 Sage complex numbers instead of python complex numbers
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4501#comment:2>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of 
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to