#5431: Command line parser fails on hex values with 'e'
------------------------------+---------------------------------------------
 Reporter:  rhinton           |       Owner:  somebody  
     Type:  defect            |      Status:  new       
 Priority:  major             |   Milestone:  sage-3.4.2
Component:  basic arithmetic  |    Keywords:            
------------------------------+---------------------------------------------
 {{{
 sage: 0xe
 ---------------------------------------------------------------------------
 TypeError                                 Traceback (most recent call
 last)

 /home/ryan/.sage/temp/fileserv/1535/_home_ryan__sage_init_sage_0.py in
 <module>()

 /home/ryan/sage-well/local/lib/python2.5/site-
 packages/sage/rings/real_mpfr.so in sage.rings.real_mpfr.create_RealNumber
 (sage/rings/real_mpfr.c:21774)()

 /home/ryan/sage-well/local/lib/python2.5/site-
 packages/sage/rings/real_mpfr.so in
 sage.rings.real_mpfr.RealLiteral.__init__ (sage/rings/real_mpfr.c:20990)()

 /home/ryan/sage-well/local/lib/python2.5/site-
 packages/sage/rings/real_mpfr.so in
 sage.rings.real_mpfr.RealNumber.__init__ (sage/rings/real_mpfr.c:7454)()

 /home/ryan/sage-well/local/lib/python2.5/site-
 packages/sage/rings/real_mpfr.so in sage.rings.real_mpfr.RealNumber._set
 (sage/rings/real_mpfr.c:7957)()

 TypeError: Unable to convert x (='0xe') to real number.
 }}}
 The same thing happens with "0xE".  It appears the parser sees the E/e and
 assumes it is a floating-point number instead of using the leading "0x".

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