Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trac #9683: pretty_print clobbers _ (history)
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. URL: http://trac.sagemath.org/9683 Reported by: mguaypaq Ticket author(s): Mike Hansen Reviewer(s): Volker Braun
- Loading branch information