#4694: ?? for decorated functions shows the source of the decorator
----------------------------+-----------------------------------------------
Reporter: whuss | Owner: was
Type: defect | Status: new
Priority: major | Milestone: sage-3.2.2
Component: user interface | Keywords:
----------------------------+-----------------------------------------------
{{{
sage: plot??
Type: function
Base Class: <type 'function'>
String Form: <function plot at 0xb6f1f454>
Namespace: Interactive
File: /.../site-packages/sage/plot/misc.py
Definition: plot(*args, **kwds)
Source:
@wraps(func)
def wrapper(*args, **kwds):
for old_name, new_name in self.renames.items():
if kwds.has_key(old_name) and not kwds.has_key(new_name):
kwds[new_name] = kwds[old_name]
del kwds[old_name]
return func(*args, **kwds)
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4694>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---