#11585: Make deprecated_function_alias print the whole module path when it
differs
from the original
----------------------------+-----------------------------------------------
Reporter: defeo | Owner: jason
Type: enhancement | Status: needs_work
Priority: minor | Milestone: sage-5.0
Component: misc | Resolution:
Keywords: deprecation | Work_issues: startuptime
Upstream: N/A | Reviewer: Rob Beezer, Florent Hivert
Author: Luca De Feo | Merged:
Dependencies: |
----------------------------+-----------------------------------------------
Comment(by hivert):
> The fact is, I don't know how to obtain the name of the module where the
call to `deprecated_function_alias` happened without inspecting the stack.
Any ideas?
I don't have to investigate further now but I think you don't need the
full stack but only the top of it. Using
{{{
inspect.getframeinfo(sys._getframe(1),1)
}}}
should be much faster...
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11585#comment:14>
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.