#5312: command line -- bug in preparser and "time"
--------------------+-------------------------------------------------------
Reporter: was | Owner: cwitty
Type: defect | Status: new
Priority: major | Milestone: sage-3.4.1
Component: misc | Keywords:
--------------------+-------------------------------------------------------
There is a weird interaction between time and preparser, almost as if
input to time is being preparsed *twice*:
{{{
wst...@sage:~/build/sage-3.3.rc1$ ./sage
----------------------------------------------------------------------
| Sage Version 3.3.rc1, Release Date: 2009-02-16 |
| Type notebook() for the GUI, and license() for information. |
----------------------------------------------------------------------
sage: k = 3r
sage: type(k)
<type 'int'>
sage: time k = 3r
CPU times: user 0.00 s, sys: 0.00 s, total: 0.00 s
Wall time: 0.00 s
sage: type(k)
<type 'sage.rings.integer.Integer'>
sage: preparse('k = 3r')
'k = 3'
sage: preparse('time k = 3r')
'time k = 3'
}}}
In the above, type(k) should have been int in all cases. Why isn't it the
second time. WEIRD.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5312>
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
-~----------~----~----~----~------~----~------~--~---