Opened 15 years ago

Closed 15 years ago

Last modified 7 years ago

#3024 closed defect (fixed)

[with patch; positive review] notebook -- parses tracebacks in the output of docstrings of help command

Reported by: William Stein Owned by: Kelly Boothby
Priority: major Milestone: sage-3.0.2
Component: notebook Keywords:
Cc: Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description (last modified by Frédéric Chapoton)

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

Attachments (1)

sage-3024.patch (2.7 KB) - added by William Stein 15 years ago.

Download all attachments as: .zip

Change History (5)

Changed 15 years ago by William Stein

Attachment: sage-3024.patch added

comment:1 Changed 15 years ago by William Stein

Summary: notebook -- parses tracebacks in the output of docstrings of help command[with patch; needs review] notebook -- parses tracebacks in the output of docstrings of help command

comment:2 Changed 15 years ago by Kelly Boothby

Summary: [with patch; needs review] notebook -- parses tracebacks in the output of docstrings of help command[with patch; positive review] notebook -- parses tracebacks in the output of docstrings of help command

works for me

comment:3 Changed 15 years ago by Michael Abshoff

Resolution: fixed
Status: newclosed

Merged in Sage 3.0.2.alpha1

comment:4 Changed 7 years ago by Frédéric Chapoton

Description: modified (diff)
Report Upstream: N/A
Note: See TracTickets for help on using tickets.