Changes between Initial Version and Version 1 of Ticket #14466, comment 7


Ignore:
Timestamp:
04/19/13 20:18:53 (9 years ago)
Author:
nbruin
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #14466, comment 7

    initial v1  
    1616
    1717Which we can accomplish by ensuring that the interactive session does give the same result as it did a while ago. Are you particularly married to this new, modified interactive result we're getting due to the IPython upgrade?
     18
     19'''EDIT:''' In fact, in [http://purple.lateralis.org/sagebook-r1014.pdf the latest version 1.0.9], your book on page 47 has
     20{{{
     21sage: o = 12/35
     22sage: type(o)
     23<type 'sage.rings.rational.Rational'>
     24}}}
     25so I think you ''do'' want to go back to the old printing. We can easily do so by catching `type` objects in `sage.misc.displayhook.format_obj`. That unifies our printing again.
     26
     27An additional reason to do so is that printing a type in the notebook still gives the normal `<type '...'>` result as well. I think that really shows that we don't want the special `IPython` behaviour in sage (doctest and notebook outvote IPython in my opinion).