On Mon, Feb 25, 2008 at 7:57 AM, mabshoff
<[EMAIL PROTECTED]> wrote:
>
>
>
>  On Feb 25, 4:49 pm, "Joel B. Mohler" <[EMAIL PROTECTED]> wrote:
>  > Hi,
>  >
>  > I just noticed that the timeit short-cut seems more broken than normal (at
>  > least I think this worked previous to 2.10.2:
>  > sage: R.<x>=ZZ[]
>  > sage: f=x^2-1
>  > sage: timeit f.factor()
>  > ------------------------------------------------------------
>  >    File "<ipython console>", line 1
>  >      timeit f.factor()
>  >             ^
>  > <type 'exceptions.SyntaxError'>: invalid syntax
>  >
>  > The ipython native %timeit still works though.
>  >
>  > Is this breakage intentional?  trac ticket warranted?
>
>  Looks like a bug to me. Please open a ticket. William did patch timeit
>  to work in the notebook, so he might have introduced something that
>  caused this.

I didn't patch timeit to work in the notebook.  I wrote a new timeit _function_
that is based on IPython's and happens to work exactly the same in the
command line or notebook, and plays better with Sage's preparser.

 --William

--~--~---------~--~----~------------~-------~--~----~
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