#5106: [with patch, positive review, needs work?] preparse bug with time and
generator assignment naming
----------------------------+-----------------------------------------------
Reporter: was | Owner: was
Type: defect | Status: new
Priority: major | Milestone: sage-3.3
Component: user interface | Keywords:
----------------------------+-----------------------------------------------
Comment(by mhampton):
New patch applied cleanly, and works on the commandline, but I get this
error in the notebook when trying to time anything:
{{{
time a = number_of_partitions(10^6)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/mh/.sage/sage_notebook/worksheets/admin/182/code/1.py",
line 9, in <module>
_time__=misc.cputime(); __wall__=misc.walltime(); a =
number_of_partitions(_sage_const_10 **_sage_const_6 ); print "Time: CPU
%.2f s, Wall: %.2f s"%(misc.cputime(__time__), misc.walltime(__wall__))
File "/Users/mh/sagestuff/sage-3.3.rc0/local/lib/python2.5/site-
packages/SQLAlchemy-0.4.6-py2.5.egg/", line 1, in <module>
NameError: name '__time__' is not defined
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5106#comment:13>
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
-~----------~----~----~----~------~----~------~--~---