#16746: Use the Sage displayhook in doctests
-------------------------------------+-------------------------------------
Reporter: vbraun | Owner:
Type: defect | Status: needs_review
Priority: major | Milestone: sage-6.4
Component: doctest framework | Resolution:
Keywords: | Merged in:
Authors: Volker Braun | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
u/vbraun/sort_dicts_in_doctests | b579b925651aae99d40731436be2300f11238265
Dependencies: #16992 | Stopgaps:
-------------------------------------+-------------------------------------
Changes (by vbraun):
* status: new => needs_review
Old description:
> The doctests output should look like the Sage commandline output, which
> it currently does not quite. Differences include:
> * Dictionaries will be sorted by key, makes output more reproducable
> * Sets are printed as `{1,2}` instead of `set([1,2])`
> * Empty set is `set()` instead of `set([])`
> * Types are `<Foo at 0x...>` instead of `<Foo object at 0x...>`
New description:
The doctests output should look like the Sage commandline output, which it
currently does not quite. Differences include:
* Dictionaries will be sorted by key, makes output more reproducable
* Sets are printed as `{1,2}` instead of `set([1,2])`
* Empty set is `set()` instead of `set([])`
* Types are `<Foo at 0x...>` instead of `<Foo object at 0x...>`
Other changes:
* Normal tracebacks can now be distinguished from tracebacks in `__repr__`
(IPython extension):
{{{
sage: f(*args)
<repr(<sage.interfaces.gap.GapElement at 0x...>) failed: ValueError: The
session in which this object was defined is no longer running.>
}}}
* Plots now print themselves in doctest mode:
{{{
sage: A.plot()
Graphics object consisting of 1 graphics primitive
}}}
--
--
Ticket URL: <http://trac.sagemath.org/ticket/16746#comment:13>
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.