#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  |    Keywords:          
------------------------------+---------------------------------------------
 {{{
 sage: 1j
 ------------------------------------------------------------
    File "<ipython console>", line 1
      Integer(1)j
                ^
 SyntaxError: invalid syntax
 }}}

 but in python:

 {{{
 sage: preparser(False)
 sage: 1j
 1j
 sage: type(1j)
 <type 'complex'>
 }}}

 Note that this does work now:

 {{{
 sage: 1rj
 1j
 sage: 1rj == complex('j')
 True
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4501>
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