#5412: bug in edit and set_edit_template
--------------------+-------------------------------------------------------
Reporter: was | Owner: cwitty
Type: defect | Status: new
Priority: major | Milestone: sage-3.4
Component: misc | Keywords:
--------------------+-------------------------------------------------------
Check this out:
{{{
sage: edit(0)
---------------------------------------------------------------------------
ValueError Traceback (most recent call
last)
/Users/wstein/.sage/temp/h70_33_89_223.paws.uga.edu/13827/_Users_wstein__sage_init_sage_0.py
in <module>()
/Users/wstein/build/sage-3.4.alpha0/local/lib/python2.5/site-
packages/sage/misc/edit_module.pyc in edit(obj, editor, bg)
243 set_editor(base,opts=opts)
244 except (ValueError, KeyError, IndexError):
--> 245 raise ValueError, "Use
set_edit_template(<template_string>) to set a default"
246
247 if not(edit_template):
ValueError: Use set_edit_template(<template_string>) to set a default
sage: set_edit_template('e')
---------------------------------------------------------------------------
NameError Traceback (most recent call
last)
/Users/wstein/.sage/temp/h70_33_89_223.paws.uga.edu/13827/_Users_wstein__sage_init_sage_0.py
in <module>()
NameError: name 'set_edit_template' is not defined
}}}
Either the error message should be changed or set_edit_template should be
imported at the top level.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5412>
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
-~----------~----~----~----~------~----~------~--~---