#3024: [with patch; positive review] notebook -- parses tracebacks in the output
of docstrings of help command
----------------------------+--------------------------
Reporter: was | Owner: boothby
Type: defect | Status: closed
Priority: major | Milestone: sage-3.0.2
Component: notebook | Resolution: fixed
Keywords: | Merged in:
Authors: | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
Dependencies: | Stopgaps:
----------------------------+--------------------------
Changes (by chapoton):
* upstream: => N/A
Old description:
> The Traceback thing gets all messed up by worksheet.py or cell.py below:
>
> {{{
> sage: help(VectorSpace)
>
> Help on function VectorSpace in module sage.modules.free_module:
>
> VectorSpace(K, dimension, sparse=False, inner_product_matrix=None)
> EXAMPLES:
> The base can be complicated, as long as it is a field.
> sage: V = VectorSpace(FractionField(PolynomialRing(ZZ,'x')),3)
> sage: V
> Vector space of dimension 3 over Fraction Field of Univariate
> Polynomial Ring in x over Integer Ring
> sage: V.basis()
> [
> (1, 0, 0),
> (0, 1, 0),
> (0, 0, 1)
> ]
>
> The base must be a field or a \code{TypeError} is raised.
> sage: VectorSpace(ZZ,5)
> Traceback (click to the left for traceback)
> ...
> TypeError: K must be a field
>
> }}}
New description:
The Traceback thing gets all messed up by worksheet.py or cell.py below:
{{{
sage: help(VectorSpace)
Help on function VectorSpace in module sage.modules.free_module:
VectorSpace(K, dimension, sparse=False, inner_product_matrix=None)
EXAMPLES:
The base can be complicated, as long as it is a field.
sage: V = VectorSpace(FractionField(PolynomialRing(ZZ,'x')),3)
sage: V
Vector space of dimension 3 over Fraction Field of Univariate
Polynomial Ring in x over Integer Ring
sage: V.basis()
[
(1, 0, 0),
(0, 1, 0),
(0, 0, 1)
]
The base must be a field or a \code{TypeError} is raised.
sage: VectorSpace(ZZ,5)
Traceback (click to the left for traceback)
...
TypeError: K must be a field
}}}
--
--
Ticket URL: <http://trac.sagemath.org/ticket/3024#comment:4>
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.