#4489: weird introspection question, specifically with certain objects in cython
files
------------------------------+---------------------------------------------
Reporter: craigcitro | Owner: was
Type: defect | Status: new
Priority: major | Milestone: sage-4.6.1
Component: user interface | Keywords:
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
------------------------------+---------------------------------------------
Comment(by wjp):
Part of the mentioned issues have been fixed as part of #3342, I think.
The remaining problem, that the sage command line doesn't show cython
source files is what the patch I'm attaching should take care of.
It patches {{{sageinspect.py}}}, so I'm attaching patches for both sage
and sagenb, to keep the files in sync as much as possible.
The approach I'm taking is monkey-patching {{{inspect.getabsfile}}},
replacing it by {{{sage_getfile}}}. The IPython code getting the file is
deeply embedded in a long function, and calls {{{inspect.getabsfile}}}
directly, so there seems to be no more elegant way of overriding the
behaviour.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4489#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 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.