#9907: Move generally usable decorators from plot.misc to misc.decorators
---------------------------+------------------------------------------------
Reporter: jsrn | Owner: tdb
Type: enhancement | Status: needs_review
Priority: minor | Milestone:
Component: relocation | Keywords: generality, decorators
Author: jsrn | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
---------------------------+------------------------------------------------
Comment(by jason):
Replying to [comment:2 jsrn]:
> While trying to use this patch in Trac #6094, I found out that the
@wraps decorator used internally in all three decorators moved to
sage.misc only works for functions in Python versions older than 3.2. It
was fixed as Python bug issue 3445. Until Sage upgrades to such a new
version of Python, I have written a small work-around, which essentially
emulates the patched behaviour of wraps. This is in the newest patch.
Do you think you could just add the work-around to the sage_wraps
decorator (sage.misc.misc.sage_wraps) and convert the decorators to use
it? There are other functions that use sage_wraps, and it would be nice
to have all of that work-around code in one place.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9907#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.