#9919: Wrap wraps-decorator working around bug when used with non-function
callables
----------------------+-----------------------------------------------------
Reporter: jsrn | Owner: jason
Type: defect | Status: new
Priority: minor | Milestone: sage-4.6
Component: misc | Keywords: decorators
Author: jsrn | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
----------------------+-----------------------------------------------------
Description changed by jsrn:
Old description:
> The @wraps decorator from the Python standard library does not work for
> non-function callables (e.g. methods) 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, we should have a small work-around.
New description:
The @update_wrapper decorator from the Python standard library does not
work for non-function callables (e.g. methods) 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, we can put a work-around in
sage.misc.misc.sage_wraps which patches this bug.
--
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9919#comment:1>
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.