On Tue, Apr 6, 2010 at 12:02 PM, Rolandb <rola...@planet.nl> wrote: > Hi, using SAGE 4.1: > > %timeit('for k in xrange(2,10): factor(3+10^k)') > > 625 loops, best of 3: 1.08 ms per loop > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File "/home/notebook/sage_notebook/worksheets/admin/18/code/65.py", > line 6, in <module> > print _support_.syseval(timeit('for k in xrange(2,10): > factor(3+10^k)'), ur'''%timeit(\u0027for k in xrange(2,10): > factor(3+10^k)\u0027)''', '/home/notebook/sage_notebook/worksheets/ > admin/18/cells/48') > File "/usr/local/sage/local/lib/python2.6/site-packages/sage/server/ > support.py", line 356, in syseval > return system.eval(cmd, sage_globals, locals = sage_globals) > AttributeError: 'NoneType' object has no attribute 'eval' > > Roland
It should be %timeit for k in xrange(2,10): factor(3+10^k) In a notebook cell. You're putting the cell in a mode. So, not a bug. -- William Stein Associate Professor of Mathematics University of Washington http://wstein.org -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org To unsubscribe, reply using "remove me" as the subject.