On Mon, Feb 25, 2008 at 10:06 AM, Nick Alexander <[EMAIL PROTECTED]> wrote:
>
>  > It might be.  I don't like the time function as it is written now,
>  > since it's
>  > done with the preparser and doesn't work when it isn't the first
>  > thing on
>  > a line, which is annoying.
>  >
>  > sage: 2 + 2; time 2 + 2
>  > ------------------------------------------------------------
>  >    File "<ipython console>", line 1
>  >      Integer(2) + Integer(2); time Integer(2) + Integer(2)
>  >                                          ^
>  > <type 'exceptions.SyntaxError'>: invalid syntax
>  >
>  > Hey, Nick, want to fix that? ;-)
>
>  Such things are legion, and it's actually an IPython problem.

I think this is a Sage problem.

  sage: time foo

is dealt with by the Sage preparser.  It's code I wrote and you've
probably looked at...

Anyway, see
   http://trac.sagemath.org/sage_trac/ticket/2031

William

> For
>  example, 'x = 2; x?' will also fail.

That's an ipython problem.

>  We could fix it, but it's likely to not be a general fix.  Open a
>  trac ticket and maybe it will get dealt with :)
>
>  Nick
>
>
>
>  >
>



-- 
William Stein
Associate Professor of Mathematics
University of Washington
http://wstein.org

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to