Skip to content

filename misreported in tracebacks for .pyx files #775

@nbruin

Description

@nbruin

In tracebacks the filenames get misreported. As you see below, sometimes the filename gets prefixed by the current directory.

sage: os.system("pwd")
/tmp
0
sage: sage.misc.sageinspect.sage_getfile(matrix)
'/usr/local/sage/default/local/lib/python2.5/site-packages/sage/matrix/constructor.py'
sage: M=matrix([[1,1]])
sage: M*M
---------------------------------------------------------------------------
<type 'exceptions.TypeError'>             Traceback (most recent call last)

/tmp/<ipython console> in <module>()

/tmp/element.pyx in element.Matrix.__mul__()

/tmp/element.pyx in element.Matrix._matrix_times_matrix_c()

<type 'exceptions.TypeError'>: incompatible dimensions

Component: user interface

Issue created by migration from https://trac.sagemath.org/ticket/775

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions