#9683: pretty_print clobbers _ (history)
------------------------------+---------------------------------------------
   Reporter:  mguaypaq        |       Owner:  was                  
       Type:  defect          |      Status:  new                  
   Priority:  major           |   Milestone:  sage-4.5.2           
  Component:  user interface  |    Keywords:  pretty_print, history
     Author:                  |    Upstream:  N/A                  
   Reviewer:                  |      Merged:                       
Work_issues:                  |  
------------------------------+---------------------------------------------
 After using `pretty_print`, the first history variable (`_`) no longer
 updates.

 {{{
 ----------------------------------------------------------------------
 | Sage Version 4.5.1, Release Date: 2010-07-19                       |
 | Type notebook() for the GUI, and license() for information.        |
 ----------------------------------------------------------------------
 Loading Sage library. Current Mercurial branch is: combinat
 sage: 17
 17
 sage: _
 17
 sage: 23
 23
 sage: _
 23
 sage: pretty_print(17)
 <html><span
 class="math">\newcommand{\Bold}[1]{\mathbf{#1}}17</span></html>
 sage: _
 17
 sage: 23
 23
 sage: _
 17
 }}}

 The relevant function seems to be `pretty_print` in `/sage/misc/latex.py`,
 but I don't know the right way to fix it. The function and
 `pretty_print_default` in same file, and the functions `displayhook` and
 `install` in `/sage/misc/displayhook.py` may also be relevant.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9683>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

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

Reply via email to