#11287: Interface to runsnake and import_statements
------------------------------------------+---------------------------------
Reporter: nthiery | Owner: tbd
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-4.7.1
Component: performance | Keywords: runsnake, prun,
profiling, days30
Work_issues: | Upstream: N/A
Reviewer: Franco Saliola, Simon King | Author: Nicolas M. ThiƩry
Merged: | Dependencies:
------------------------------------------+---------------------------------
Comment(by SimonKing):
I thought that the improvements to sageinspect from #9976 would make
things robust enough, so that sage_getfile could be used to extract the
information on where to import stuff from.
But with or without #9976, we have
{{{
sage: P.<x,y> = QQ[]
sage: P??
Error getting source: could not find class definition
...
Docstring [source file open failed]:
File: sage/rings/polynomial/multi_polynomial_libsingular.pyx (starting
at line 229)
Construct a multivariate polynomial ring subject to the following
conditions:
INPUT:
* ``base_ring`` - base ring (must be either GF(q), ZZ, ZZ/nZZ,
QQ or absolute number field)
* ``n`` - number of variables (must be at least 1)
* ``names`` - names of ring variables, may be string of list/tuple
* ``order`` - term order (default: ``degrevlex``)
}}}
The "Error getting source: could not find class definition" is annoying.
Note that the doc string above gives the correct location and line number!
So, sage.misc._extract_embedded_position should be able to do the job, but
it isn't.
I think improving the introspection further should be on a different
ticket, on top of #9976.
Cheers,
Simon
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11287#comment:9>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.